On Aug 10, 9:58 pm, Joey Derrico <joeyd...@gmail.com> wrote: > I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am > brand new to jQuery. I wanted to use JSON in a project I am working on and I > read various tutorials on using JSON with jQuery however none of them > answered some of my questions. The biggest one is, does jQuery support JSON > or do I need to use another JSON library to use JSON with jQuery?
JSON is simply a data format. "Supporting" JSON simply means having: a) a function which can transform JS objects into a JSON-compliant string. b) a function which can transform a compliant string into a JS object. AFAIK, jQuery doesn't have any built-in support for JSON, but it doesn't have to - it doesn't operate at a level where JSON would be useful (except for possible selector-style traversal of a JSON tree). The canonical JSON implementation for JavaScript is Doug Crockford's json2.js, available here: http://www.json.org/ See JSON.stringify() and JSON.parse().