Skip to main content

decode_json_string_with_control

Function decode_json_string_with_control 

Source
pub fn decode_json_string_with_control(
    encoded: impl AsRef<[u8]>,
    control: &ProductionControl<'_>,
) -> Result<Produced<String>, JsonReadError>
Expand description

Decode with the existing token grammar and one admitted string constructor. Both cancellation owners are checked during validation and output; no parser-owned escape scratch or second output string is allocated.