Show HN: A Go JSON library faster than Sonic, with encoding/JSON/v2 support
Category: library
Tags: json, go, performance, encoding, decoding
Score: 7.8/10 (Innovation: 6, Technical: 9, Documentation: 8, Utility: 8)
go-json is a high-performance drop-in replacement for Go's encoding/json, offering compatibility with the upcoming encoding/json/v2 and jsontext packages. It achieves speed through buffer reuse, reflection elimination, and other optimizations, making it faster than Sonic while maintaining strict compatibility. Its extensive feature set includes context propagation, field filtering, and allocation-saving APIs.
Target audience: Go backend developers
Repository: https://github.com/goccy/go-json · Go · MIT · 3767 stars
View on Hacker News