Function parse_with_exit_signal

Source
pub fn parse_with_exit_signal<'a>(
    on: &'a str,
    cb: impl for<'b> FnMut(&'b [JSONKey<'a>], RootJSONValue<'a>) -> bool,
    exit_on_first_value: bool,
    allow_comments: bool,
) -> Result<usize, JSONParseError>
Expand description

Returns the number of bytes parsed. exit_on_first_value returns once the first object has been parsed.

ยงErrors

Returns an error if it tries to parse invalid JSON input