Expand description
The JSON object contains methods for parsing JavaScript Object
Notation (JSON) and converting values to JSON. It
can’t be called or constructed, and aside from its two method
properties, it has no interesting functionality of its own.
Functions§
- is_
raw_ json - The
JSON.isRawJSON()method returns whether a value is a raw JSON object created byJSON.rawJSON(). - parse
- The
JSON.parse()method parses a JSON string, constructing the JavaScript value or object described by the string. - raw_
json - The
JSON.rawJSON()method creates a raw JSON object whose text is emitted verbatim byJSON.stringify(), allowing values such as large integers to round-trip without precision loss. Throws aSyntaxErrorunlesstextis valid JSON for a primitive. - stringify
- The
JSON.stringify()method converts a JavaScript value to a JSON string. - stringify_
with_ replacer - The
JSON.stringify()method converts a JavaScript value to a JSON string. - stringify_
with_ replacer_ and_ space - The
JSON.stringify()method converts a JavaScript value to a JSON string. - stringify_
with_ replacer_ func - The
JSON.stringify()method converts a JavaScript value to a JSON string. - stringify_
with_ replacer_ list - The
JSON.stringify()method converts a JavaScript value to a JSON string.