A Go JSON library faster than Sonic, with encoding/JSON/v2 support
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
goccy/go-json is a drop-in replacement for Go's encoding/json, claiming faster encoding and decoding than libraries such as bytedance/sonic while keeping compatibility with encoding/json and the v2 packages. It adds MarshalOf and UnmarshalOf to avoid interface allocations, and its README describes the reflection-avoidance and buffer-pooling techniques behind its speed.