Skip to main content

diagnostics

Function diagnostics 

Source
pub fn diagnostics(input: &str) -> Vec<Diagnostic>
Expand description

Fast validation path: parses and returns only syntax or structural errors without fully allocating the resulting AST tree.

§Arguments

  • input - The raw JSON string slice to validate.

§Returns

A list of Diagnostic errors found in the input. If the input is valid JSON, this is empty.