Skip to main content

JS_ParseJSON2

Function JS_ParseJSON2 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_ParseJSON2( ctx: *mut JsContext, buf: *const c_char, buf_len: usize, _filename: *const c_char, flags: c_int, ) -> JsValue
Expand description

JS_ParseJSON2: parse JSON, optionally as extended JSON.

JS_PARSE_JSON_EXT (bit 0) enables the reference’s extension — comments, single quotes, trailing commas and NaN/Infinity — which the engine has as parse_ext_json.

§Safety

As JS_ParseJSON.