Expand description
The parsing module contains the strict and tolerant JSON parsers, as well as fast diagnostics syntax checking and parsing helper utilities.
Re-exports§
pub use strict::parse;
Modules§
- strict
- Strict JSON parser implementation carrying byte-accurate spans for AST nodes.
- tolerant
- Strict JSON parser implementation carrying byte-accurate spans for AST nodes.
- utils
- Internal parser utilities, including mapping line/column errors back to byte offsets.
Functions§
- diagnostics
- Fast validation path: parses and returns only syntax or structural errors without fully allocating the resulting AST tree.
- tolerant_
parse - 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.