The JSON object:
The JSON Data Interchange Format is defined in ECMA-404. The JSON interchange format used in this specification is exactly that described by ECMA-404. Conforming implementations of
JSON.stringify must support the exact interchange format described in the ECMA-404 specification without any deletions or extensions to the format.
This function parses a JSON text (a JSON-formatted String) and produces an
The optional reviver parameter is a function that
takes two parameters, key and value. It can filter and transform the results. It is called with each of the key/value pairs produced by the parse, and its return value is used instead of the original value. If it returns what it received, the structure is not modified. If it returns
parse function is
Valid JSON text is a subset of the ECMAScript
JSON.parse, the same source text can produce different results when evaluated as a
JSON.parse, means that not all texts accepted by
JSON.parse are valid as a
The abstract operation InternalizeJSONProperty takes arguments holder (an Object), name (a String), reviver (a
This algorithm intentionally does not throw an exception if either [[Delete]] or
It performs the following steps when called:
It is not permitted for a conforming implementation of
JSON.parse to extend the JSON grammars. If an implementation wishes to support a modified or extended JSON interchange format it must do so by defining a different parse function.
In the case where there are duplicate name Strings within an object, lexically preceding values for the same key shall be overwritten.
stringify function returns a String in UTF-16 encoded JSON format representing an
The abstract operation SerializeJSONProperty takes arguments state (a