Tools, FAQ, Tutorials:
JSON.parse() Function in JavaScript
Where to get the detailed description of the JSON.parse() Function in JavaScript?
✍: FYIcenter.com
Here is the detailed description of the
JSON.parse() Function in JavaScript.
Description - The JSON.parse() function parses a JSON string, constructing the JavaScript value or object described by the string. An optional reviver function can be provided to perform a transformation on the resulting object before it is returned.
Syntax -
JSON.parse(text[, reviver])
Parameters -
Return value - The JavaScript value corresponding to the given JSON text.
Exceptions - Throws a SyntaxError exception if the string to parse is not valid JSON.
Examples -
JSON.parse('{}'); // {} JSON.parse('true'); // true JSON.parse('"foo"'); // "foo" JSON.parse('[1, 5, "false"]'); // [1, 5, "false"] JSON.parse('null'); // null
For more information on the JSON.parse() function, see JSON.parse() reference page.
2017-08-17, 702👍, 0💬
Popular Posts:
Where to see resource detailed information of my API Management Service on Azure Portal? Once you ha...
How to create a new API on the Publisher Dashboard of an Azure API Management Service? If you are ne...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
How to search for the first match of a regular expression using re.search()? The re.search() functio...
Why Do You Need to Filter Out Empty Files in PHP? When you are processing uploaded files, you need t...