Compare Revisions

JSON.parse()

Change Revisions

Revision 74833:

Revision 74833 by evilpie on

Revision 74834:

Revision 74834 by marcello.nuccio on

Title:
parse
parse
Slug:
JavaScript/Reference/Global_Objects/JSON/parse
JavaScript/Reference/Global_Objects/JSON/parse
Content:

Revision 74833
Revision 74834
n17            Method of <a href="/en/JavaScript/Reference/Global_Obn17            Method of <a href="/en/JavaScript/Reference/Global_Ob
>jects/JSON"><code>JSON</code></a>>jects/JSON" title="en/JavaScript/Reference/Global_Objects/JSON"><
 >code>JSON</code></a>
n74JSON.parse('"foo"); // "foo"n74JSON.parse('"foo"'); // "foo"
tt89    <p>
90      If the string to parse is not valid JSON, a SyntaxError exc
 >eption is thrown.
91    </p>

Back to History