Skip to main content

parse_text

Function parse_text 

Source
pub fn parse_text(
    interp: &mut Interp<'_>,
    text: &str,
    ext: bool,
) -> JsResult<Value>
Expand description

Parse text, either as RFC 8259 JSON or in the extended dialect.

The extended dialect is what the reference calls JS_PARSE_JSON_EXT: the same parser with a flag, not a separate parser and not a pre-processing pass. It is exposed to scripts only through std.parseExtJSON, so JSON.parse stays strict.