github.com/goccy/go-json

go-json

Fast JSON encoder/decoder compatible with encoding/json for Go

89

Decision Signals

Health score 89/100, confidence 60/100.

Excellent
Maintenance 88
Adoption 100
Security 92
Maturity 77
Developer DX 77
Confidence 60

Install

go get github.com/goccy/go-json

Package Data

updated Jun 11, 2026
Latest versionUnknown
Imported by4.2K packages
Stars3.7K
Forks194
Last activity2 months ago
Latest releasev0.10.6 (3 months ago)
LicenseMIT
Known vuln records0

API Surface

85 symbols
SymbolKindSynopsis
ColorFormat Type type ColorFormat = encoder.ColorFormat
ColorScheme Type type ColorScheme = encoder.ColorScheme
DecodeOption Type type DecodeOption = decoder.Option
DecodeOptionFunc Type type DecodeOptionFunc func(*DecodeOption)
DecodeFieldPriorityFirstWin Function func DecodeFieldPriorityFirstWin() DecodeOptionFunc
Decoder Type type Decoder struct{}
Decoder.Buffered Method func (d *Decoder) Buffered() io.Reader
Decoder.Decode Method func (d *Decoder) Decode(v interface{}) error
Decoder.DecodeContext Method func (d *Decoder) DecodeContext(ctx context.Context, v interface{}) error
Decoder.DecodeWithOption Method func (d *Decoder) DecodeWithOption(v interface{}, optFuncs ...DecodeOptionFunc) error
Decoder.DisallowUnknownFields Method func (d *Decoder) DisallowUnknownFields()
Decoder.InputOffset Method func (d *Decoder) InputOffset() int64

Similar Packages

Go JSON Libraries

#1 fastjson

Package fastjson provides fast JSON parsing.

Go JSON Libraries 0 stars 895 imported-by 80% confidence
73

#2 jsoniter

Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json.

Go JSON Libraries 13.9K stars 17.7K imported-by 100% confidence
71

#3 codec

Package codec provides a High Performance, Feature-Rich Idiomatic Go codec/encoding library for binc, msgpack, cbor, json.

Go JSON Libraries 0 stars 9.9K imported-by 65% confidence
68

#4 bel

Generate TypeScript interfaces from Go structs/interfaces. Useful for JSON RPC.

Go JSON Libraries 0 stars 2 imported-by 80% confidence
44

#5 go-starter

An opinionated production-ready RESTful JSON backend template, highly integrated with VSCode DevContainers.

Go JSON Libraries 0 stars 0 imported-by 25% confidence
44