Skip to main content

parse_json

Function parse_json 

Source
pub fn parse_json(content: &str) -> Option<JsonLdVal>
Expand description

Parse a JSON string and return the full JsonLdVal tree with source spans.

Unlike parse_jsonld_for_context, this returns the entire document — including the @context entry — making it suitable for span extraction over component and config files where caller code needs the precise byte ranges of @id values.