Description

JsonHandle is a handle for JSON encoding format.

Json is comprehensively supported:

- decodes numbers into interface{} as int, uint or float64
- encodes and decodes []byte using base64 Std Encoding
- UTF-8 support for encoding and decoding

It has better performance than the json library in the standard library, by leveraging the performance improvements of the codec library and minimizing allocations.

In addition, it doesn't read more bytes than necessary during a decode, which allows reading multiple values from a stream containing json and non-json content. For example, a user can read a json value, then a cbor value, then a msgpack value, all from the same stream in sequence.

JsonHandle is referenced in 0 repositories