mirror of https://github.com/goccy/go-json.git
1.9 KiB
1.9 KiB
go-json
Fast JSON encoder/decoder compatible with encoding/json for Go
Status
Type
Currently supported all types
API
Compact
HTMLEscape
Indent
Marshal
MarshalIndent
Unmarshal
Valid
NewDecoder
(*Decoder).Buffered
(*Decoder).Decode
(*Decoder).DisallowUnknownFields
(*Decoder).InputOffset
(*Decoder).More
(*Decoder).Token
(*Decoder).UseNumber
Delim
(Delim).String
NewEncoder
(*Encoder).Encode
(*Encoder).SetEscapeHTML
(*Encoder).SetIndent
Error
InvalidUTF8Error
InvalidUnmarshalError
MarshalerError
SyntaxError
UnmarshalFieldError
UnmarshalTypeError
UnsupportedTypeError
UnsupportedValueError
Benchmarks
$ cd benchmarks
$ go test -bench .
Encode
Fastest
SmallStruct
MediumStruct
LargeStruct
Decode
So faster than json-iterator/go
SmallStruct
MediumStruct
LargeStruct
License
MIT