pub fn parse(input: &str) -> Result<JsonNode, Vec<Diagnostic>>Expand description
Strict parsing: Fails entirely if the JSON is invalid. Returns the parsed tree or a list of diagnostic errors. Primarily used for final validation.
§Arguments
input- The raw JSON string slice to parse.
§Returns
Ok(JsonNode)- The parsed JSON abstract syntax tree (AST) on successful parse.Err(Vec<Diagnostic>)- A list of syntax or structural errors found during parsing.