Documentation
¶
Overview ¶
Package jsonvalue preserves numbers in scoped application and policy JSON without changing unrelated control metadata or typed counters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalNumber ¶
CanonicalNumber compacts a JSON number without expanding its exponent. It removes insignificant zero digits before passing a value to native codecs.
func CompareNumbers ¶
CompareNumbers orders exact JSON decimals without converting to a float or expanding an exponent. The result is -1, 0 or 1; invalid tokens return false.
func DecodeUnique ¶
DecodeUnique preserves numbers and rejects ambiguous object members at every depth. Use it when one interpretation authorizes bytes another service reads.
func Equal ¶
Equal compares decoded JSON values without rounding numbers. Equivalent numeric spellings such as 1, 1.0 and 1e0 compare equal.
func EqualNumbers ¶
EqualNumbers compares JSON decimal values exactly, without expanding their exponents. Memory and work remain bounded by the number tokens' lengths.
Types ¶
This section is empty.