Skip to main content
Improved formatting. (Simpler, but still contains the same information.
Source Link
JSON.parse(jsonString); 

IsJSON.parse(jsonString) is a pure JavaScript approach so long as you can requireguarantee a reasonably modern browser.

See also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

JSON.parse(jsonString); 

Is a pure JavaScript approach so long as you can require a reasonably modern browser.

See also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

JSON.parse(jsonString) is a pure JavaScript approach so long as you can guarantee a reasonably modern browser.

Clarified browser requirements
Source Link
Matt Sheppard
  • 118.4k
  • 46
  • 116
  • 134

Why not just:

JSON.parse(jsonString); 

Is a pure JavaScript approach so long as you can require a reasonably modern browser.

See also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

Why not just:

JSON.parse(jsonString); 
JSON.parse(jsonString); 

Is a pure JavaScript approach so long as you can require a reasonably modern browser.

See also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

Source Link
Jonathan.
  • 55.7k
  • 55
  • 202
  • 301

Why not just:

JSON.parse(jsonString);