Expand description
Canonical JSON encoding, decoding, and format versions. Bounded canonical JSON encoding and fail-closed decoding.
Structs§
- Codec
Version - Version of the canonical JSON codec itself.
- Format
Version - A format version owned by a later schema/query/migration envelope.
Functions§
- ensure_
codec_ version - Require an exact codec version before payload construction.
- ensure_
format_ version - Require an exact owning-format version before payload construction.
- from_
canonical_ json - Decode only exact canonical bytes, checking limits before constructing
T. - from_
canonical_ json_ with_ limits - Decode exact canonical bytes under explicit structural limits.
- to_
canonical_ json - Encode one value to compact, key-sorted canonical JSON bytes.
- to_
canonical_ json_ with_ limits - Encode one value under explicit structural limits.