Skip to main content

Module json

Module json 

Source
Expand description

JSON encoding/decoding for backwards compatibility.

Provides human-readable serialization format for debugging and legacy support.

Functionsยง

decode
Deserialize from JSON bytes.
decode_from
Deserialize from a JSON reader.
encode
Serialize to pretty-printed JSON bytes.
encode_compact
Serialize to compact (no whitespace) JSON bytes.
encode_to
Serialize pretty-printed JSON into a writer.
encode_to_compact
Serialize compact JSON into a writer.
from_string
Deserialize from a JSON &str.
to_string
Serialize to a pretty-printed JSON String.
to_string_compact
Serialize to a compact JSON String.