Skip to main content

raw_json

Function raw_json 

Source
pub fn raw_json(text: &str) -> Result<Object, JsValue>
Expand description

The JSON.rawJSON() method creates a raw JSON object whose text is emitted verbatim by JSON.stringify(), allowing values such as large integers to round-trip without precision loss. Throws a SyntaxError unless text is valid JSON for a primitive.

MDN documentation