pub fn tolerant_parse(input: &str) -> (Option<JsonNode>, Vec<Diagnostic>)Expand description
Tolerant parsing: Attempts to build a partial AST even if errors are present. Useful for live IDE feedback while typing, preserving as much of the tree as possible.
§Arguments
input- The raw JSON string slice to parse (potentially incomplete or invalid).
§Returns
A tuple containing:
Option<JsonNode>- The partial AST tree if any structure could be recovered.Vec<Diagnostic>- A list of errors encountered during parsing.