JSON

The standard JSON global is provided: JSON in JavaScript. This is a fast implementation which does not eval() any text.

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.