//go:build (linux || darwin || windows) && (amd64 || arm64)1// +build linux darwin windows2// +build amd64 arm6434package json56import "github.com/bytedance/sonic"78var api = sonic.ConfigStd910// Exported functions from the [sonic.API].11var (12Marshal = api.Marshal13Unmarshal = api.Unmarshal14MarshalIndent = api.MarshalIndent15NewDecoder = api.NewDecoder16NewEncoder = api.NewEncoder17)1819// Encoder is a JSON encoder.20type Encoder = sonic.Encoder2122// Decoder is a JSON decoder.23type Decoder = sonic.Decoder2425// SetConfig sets the configuration for the JSON package.26func SetConfig(config *sonic.Config) {27api = config.Froze()28}293031