Expand description
JSON decoding APIs and their diagnostics.
Structs§
- JcsDecoder
- Decodes strict JSON text into an owned value using finite binary64 numbers.
Construction uses the shared builder and the configured, root-inclusive
max_depth; there is no additional fixed container limit. The legacy methods return a bareserde_json::Value; callers accepting deep documents should use thedecode_value_*methods to retain iterative cleanup. The decoder borrows its accounting session for'budget;Rselects the resource kind andQis the quantity representation used by that session. Calls reuse the same cumulative session, so limits apply across all inputs decoded through this value. - Json
Decode Error - Failure produced by either strict or normalizing JSON decoding.
- Json
Decoder - Strictly decodes complete JSON documents while retaining cumulative usage.
- Json
Number Token - A syntactically validated number token borrowed from the input document.
- Json
Syntax Error - A JSON syntax error with a zero-based byte offset and one-based source coordinates. Its column counts UTF-8 characters; CRLF is one line break, while LF and standalone CR each also start a new line.
- Json
Validated Decode Options - Generic structural and source-token limits for validated decoding.
- Json
Validated Decode Options Builder - Builds
JsonValidatedDecodeOptions. - Normalized
Json Document - A normalized JSON document whose text outlives borrowed decode results.
- Normalizing
Json Decode Policy - Text-normalization and diagnostic policy for
crate::decode::NormalizingJsonDecoder. - Normalizing
Json Decode Policy Builder - Builder for
NormalizingJsonDecodePolicy. - Normalizing
Json Decoder - Normalizes non-fully-trusted text before decoding complete JSON documents.
Enums§
- Diagnostic
Policy - Controls whether library-generated JSON decoding diagnostics retain input-derived details.
- JcsDecode
Error - JCS decoding failure with explicit duplicate-key handling.
- Json
Decode Context - Grammar location where a validated decode failure occurred.
- Json
Decode Error Kind - Represents the coarse category of a JSON decoding failure.
- Json
Decode Error Source - An owned semantic source extracted from a JSON decoding failure.
- Json
Decode Number Model - Controls lexical admission of syntactically valid JSON number tokens.
- Json
Decode Stage - Identifies the semantic decoding stage where a failure occurred.
- Json
Materialization Error Reason - Describes why an admitted unique-key document could not be materialized.
- Json
Number Policy - Selects how a validated source number is represented in the output tree.
- Json
Number Token Error - Explains why a validated JSON number cannot be represented as a safe integer.
- Json
Path Segment - Identifies an object key or array index in a JSON value path.
- Json
Root Kind - Represents the top-level kind of a parsed JSON value.
- Json
Syntax Error Reason - The concrete reason why a JSON document was rejected lexically.
- Json
Validated Admission Policy - Selects how validated decoding admits JSON tokens before checking what follows them.
- Json
Validated Decode Error - A validated decoding failure with source offset and privacy-safe outer formatting.
- Json
Validated Limit - Identifies an additional per-document decode limit for validated JSON.
- Markdown
Fence Closing - Specifies whether an opening Markdown code fence needs a closing fence.
- Markdown
Fence Policy - Controls whether and how one outer Markdown code fence is stripped.