Skip to main content

parse_typed_json

Function parse_typed_json 

Source
pub fn parse_typed_json(input: &str) -> Result<TypedCanonicalValue, Tcv1Error>
Expand description

Parse exactly one strict JSON document while retaining numeric token kind.

Only RFC 8259 whitespace is accepted. Duplicate decoded keys, NFC-colliding keys, unpaired UTF-16 surrogate escapes, out-of-range integer tokens, non-finite binary64 conversions, and trailing data are rejected.