JSON (JavaScript Object Notation) is a lightweight data interchange format. Because of the language-independent text format, also used similar to the C language family habits, with these features make JSON known as the ideal data exchange language, the role is easy to read and write, but also easy to machine parsing and generation (generally used for network transmission rate).
(1) json.parse function
function: Converts a JSON string into a JSON object.
Syntax: JSON. Parse (Text[,reviver]).
Parameter: text must be; a valid JSON string.
Reviver is optional.
Return value: An object or an array.
Example
(2) json.stringify () function
Function: Converts a JSON object into a JSON string.
Syntax: json.stringify (value [, Replacer] [, space])
Parameter: value must be, usually an object or an array.
Replacer optional, function or array for converting results.
space is optional. Adds indents, spaces, and line breaks to the return value JSON text to make it easier to read.
Return value: A string containing the JSON text.
Example
(3)
JS in Json.stringify () and Json.parse () and eval () detailed and use case