A JSON library that uses conditional compilation to be compatible with different architectures.
Based on bytedance/sonic and goccy/go-json
- Go: 1.25.0+
- Uses conditional compilation to be compatible with different architectures.
Default behaviors are mostly consistent with encoding/json.
import"go.gh.ink/json"vardataYourSchema// Marshaloutput, err:=json.Marshal(&data)
// Unmarshalerr:=json.Unmarshal(output, &data)