JSON.parse()
Description
Converts a JavaScript Object Notation (JSON) string into an object.
The input to this method is expected to be a string. If you have a Data input, use JSON.decode() instead.
Syntax
JSON.parse(text)
Parameters
parse(text, reviver?)
textreviver?
A valid JSON string.
A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
parse(text, reviver?)
Deserializes a value from JSON format.
textreviver?
A string to deserialize as JSON format.
A callback function that receives a deserialized value via its three parameters (key, value and container) and returns a replacement value as result.
Return Value
A value of any type after deserialization.