Skip to main content

Module json

Module json 

Source

Structs§

ByteCount
A counting sink: the total byte length of every piece written.
Error
Scratch
The serializer’s entire working memory: one member-order buffer per nesting level, reused across every sibling at that level, and one integer-format buffer. Streaming allocates nothing else, so a reserved Scratch makes serialization scratch a fixed space.

Enums§

ErrorKind
Value

Constants§

MAX_SAFE_INTEGER

Traits§

Sink
A canonicalization output: receives the serialization in pieces, in order. Concatenating every piece yields exactly the canonical bytes.

Functions§

canonical
canonical_length
The exact byte length canonical would produce, without materializing it: the counting canonical-serialization pass.
parse
Parses exactly one strict JSON value from the complete input.
stream
Streams the canonical serialization into the sink using its own transient scratch. For the fixed-scratch fatal lane use Scratch::stream with a reused scratch instead.