A JSON library that uses conditional compilation to be compatible with different architectures.
Based on bytedance/sonic and goccy/go-json
- Go: 1.24.1+
- Uses conditional compilation to be compatible with different architectures.
Default behaviors are mostly consistent with encoding/json.
import "github.com/ghinknet/json"
var data YourSchema
// Marshal
output, err := json.Marshal(&data)
// Unmarshal
err := json.Unmarshal(output, &data)