Skip to main content

JS_ParseJSON3

Function JS_ParseJSON3 

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

JS_ParseJSON3: the same, plus a record of where each value came from.

The parse record is a debug/IDE feature (source positions for a JSON document); this layer does not produce one, so it parses and leaves pr untouched. A caller that needs the record must not use this library — recorded in the README rather than pretended.

§Safety

As JS_ParseJSON2; pr may be null.