JSON

The standard JSON global is provided: JSON.

function JSON.parse(jsonText, reviver)

Returns a parsed JavaScript data structure. Optional reviver function is called for every key and value.

function JSON.stringify(object, replacer)

Returns a JSON representation of the JavaScript data structure. Optional replacer function is called for every value in the structure, with key and value as arguments.