Skip to main content

parse_jsonld_for_context

Function parse_jsonld_for_context 

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

Parse a JSON-LD string (fetched from a remote URL) and return the value that should be used as a context. If the document has a top-level @context, return that; otherwise return the whole document.