I need to know is JSON2 lib included in jQuery core or must i use JSON2 lib from http://www.json.org/js.html.
+4
A:
It is not included in the current jQuery core (1.3.2). In the jquery irc #jquery on freenode, there is a quote by John Resig:
John Resig: "In the meantime PLEASE start migrating your JSON-using applications over to Crockford's json2.js"
Future versions of jQuery are planned to support this natively.
Alex Sexton
2009-10-19 07:42:29
Can you supply us link?
jmav
2009-10-19 08:24:26
This information is stored in the #jquery bot on irc.freenode.net which is where John gave this information (at least one of the places). So there is no direct link. You can, however, query the bot very easily. Log into #jquery and type the command: `?json2` (no backticks, of course) and you will get that quote along with a link to the library.
Alex Sexton
2009-10-19 08:42:13
http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
jmav
2009-10-19 08:43:23
If you meant a link to the json2 library, its at: http://json.org/json2.js
Alex Sexton
2009-10-19 08:43:46
Ah yes, it also seems to be in his blog. :D Here is the link for the feature request for 1.3.3 - which is now 1.4 : http://dev.jquery.com/ticket/4990
Alex Sexton
2009-10-19 08:47:29
+3
A:
JSON2 is not included on the jQuery Core, but if you are wanting to use jQuery to get JSON responses from your server (by using $.getJSON, and other Ajax functions with dataType = "json") jQuery will evaluate the JSON for you, you don't need anything more.
If you need other things, like stringifying objects or parsing JSON strings on your own, you will need the JSON2 library...
CMS
2009-10-19 07:43:55