Json Module
JSON codec compilation and runtime helpers. Compile a schema once, then reuse the resulting codec for repeated JSON serialization and deserialization.
Types
| Type | Description |
|
A compiled JSON codec for a specific schema. |
|
|
|
|
|
Decoder shape used by the compiled JSON runtime. |
|
|
The byte-level input state for JSON decoding. |
|
|
The byte-level output abstraction used by JSON encoders. |
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
Deserializes a JSON payload using a previously compiled codec. The entire payload must be consumed. Trailing content is treated as an error rather than ignored.
|
|
Deserializes a UTF-8 byte payload using a previously compiled codec.
|
|
Serializes a value to JSON using a previously compiled codec.
|
CodecMapper