Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCompact ¶ added in v0.5.0
MarshalCompact encodes v on one line with HTML escaping, like json.Marshal, writing keys in recorded order when key order preservation is enabled.
func NormalizeNumbers ¶ added in v0.5.0
NormalizeNumbers replaces json.Number values with int when they are whole numbers within int range, and float64 otherwise.
func Unmarshal ¶ added in v0.5.0
Unmarshal decodes a single JSON value. Generic destinations receive int for integers, because decoding them as float64 corrupts values above 2^53.
func UnmarshalAll ¶ added in v0.5.0
UnmarshalAll decodes a stream of whitespace-separated JSON values, keeping integers exact like Unmarshal.