json-iterator

jsoniter: A high-performance 100% compatible drop-in replacement of „encoding/json“.

100% compatibility with standard lib

// Replace
import "encoding/json"
json.Marshal(&data)

// with
import jsoniter "github.com/json-iterator/go"

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Marshal(&data)

// Replace
import "encoding/json"
json.Unmarshal(input, &data)

// with
import jsoniter "github.com/json-iterator/go"

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Unmarshal(input, &data)