github.com/json-iterator/go

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.

71

Decision Signals

Health score 71/100, confidence 100/100.

Review
Maintenance 12
Adoption 100
Security 92
Maturity 94
Developer DX 97
Confidence 100

Install

go get github.com/json-iterator/go

Package Data

updated Jun 11, 2026
Latest versionv1.1.12
Imported by17.7K packages
Stars13.9K
Forks1.1K
Last activity2 years ago
Latest releasev1.1.12 (4 years ago)
LicenseMIT
Known vuln records0

API Surface

248 symbols
SymbolKindSynopsis
API Type type API interface{ ... }
API.DecoderOf Method DecoderOf func(typ reflect2.Type) ValDecoder
API.EncoderOf Method EncoderOf func(typ reflect2.Type) ValEncoder
API.Get Method Get func(data []byte, path ...interface{}) Any
API.Marshal Method Marshal func(v interface{}) ([]byte, error)
API.MarshalIndent Method MarshalIndent func(v interface{}, prefix, indent string) ([]byte, error)
API.MarshalToString Method MarshalToString func(v interface{}) (string, error)
API.NewDecoder Method NewDecoder func(reader io.Reader) *Decoder
API.NewEncoder Method NewEncoder func(writer io.Writer) *Encoder
API.RegisterExtension Method RegisterExtension func(extension Extension)
API.Unmarshal Method Unmarshal func(data []byte, v interface{}) error
API.UnmarshalFromString Method UnmarshalFromString func(str string, v interface{}) error

Maintained Alternatives

archived repository

#1 go-json

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

Go JSON Libraries 3.7K stars 4.2K imported-by 60% confidence
89

#2 fastjson

Package fastjson provides fast JSON parsing.

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

#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

Similar Packages

Go JSON Libraries

#1 go-json

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

Go JSON Libraries 3.7K stars 4.2K imported-by 60% confidence
89

#2 fastjson

Package fastjson provides fast JSON parsing.

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

#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