Module json
Available on crate feature
std only.Expand description
Streaming readers for JSON arrays and newline-delimited JSON.
Structs§
- Array
Parse Config - Bounds how many encoded bytes can be buffered for a single JSON array element.
- Json
Array Read Stream - Decodes one element at a time from a top-level JSON array.
- Json
Decoder - NDJson decoder decoding ndjson stream of bytes into json objects.
- Json
Encoder - NDJson encoder.
- Json
Read Stream - Wraps a Stream of Results of data blocks, i.e. types that reference as byte array, and offers a Stream implementation over parsed NDJSON-records according to Deserialize, forwarding potential errors returned by the wrapped iterator.
- Json
Write Stream - Wraps a Stream of Results of items that can be json-serialized and offers a Stream implementation of Bytes (json-encoded)-records according to Serialize, forwarding potential errors returned by the wrapped iterator.
- Parse
Config - Configuration for the NDJSON-parser which controls the behavior in various situations.
Enums§
- Empty
Line Handling - Controls how the parser deals with lines that contain no JSON values.
Constants§
- DEFAULT_
MAX_ ELEMENT_ BYTES - Default maximum encoded size of one element in a streamed JSON array.
- DEFAULT_
MAX_ LINE_ BYTES - Default for
ParseConfig::with_max_line_bytes: far above any line a real peer sends.