JSON.decode()
Description
Deserializes a value from JSON format.
The input to this method is expected to be a Data. If you have a string input, use JSON.parse() instead.
Syntax
JSON.decode(data)
Parameters
decode(data, reviver?)
datareviver?
A Data object 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.