Skip to main content

parse_json_events

Function parse_json_events 

Source
pub fn parse_json_events(
    json: &str,
    escape: bool,
    liberal: bool,
    sink: &mut dyn FnMut(JsonEvent),
) -> Result<(), XmlError>
Expand description

Parse json (F&O §17.5), driving sink with one JsonEvent per structural token. Duplicate-key policy is left to the consumer — the parser reports keys verbatim. escape keeps backslash sequences in string content; liberal tolerates unescaped control characters.