what is JSON and use of it?
how to develop prototype using JSON?
plz explain with example.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny SharmaRank #223 · 11.1K reputationPosted Jul 3, 2013, 10:59 AM EDT
Derived from JavaScript scripting language, JSON is a lightweight text-based open standard designed for human-readable data interchange. It is used to represent simple data structures and associative arrays (objects). It is language independent and have parsers available for many programming languages. It's filename extension is .json and MIME type is "application/json".
Refer to this site to gain a deeper idea about how it works and how to use it:
http://www.copterlabs.com/blog/json-what-it-is-how-it-works-how-to-use-it/
You'll get many examples on above mentioned site.
Now, to answer your second question:
1. JSON requires less tags than XML – XML items must be wrapped in open and close tags whereas JSON you just name the tag once
2. Because JSON is transportation-independent, you can just bypass the XMLHttpRequest object for getting your data.
3. JavaScript is not just data – you can also put methods and all sorts of goodies in JSON format.
4. JSON is better at helping procedural decisions in your JavaScript based on objects and their values (or methods).
You can get JSON data from anywhere, not just your own domain. There's no more proxy server nonsense.
Hope it satisfies your questions :)
Mark it as answer if it helps.
Cheers!
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 3, 2013, 11:19 AM EDT
http://www.w3schools.com/json/default.asp
also check the next chapter of above link.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 3, 2013, 7:06 PM EDT
hi,
JSON (JavaScript Object Notation) is a lightweight data-interchange format.JSON is smaller than XML, and faster and easier to parse.
Please refer
http://www.json.org/
http://www.json.com/
hope this will help you
Dipika Shah102 reputationPosted Jul 4, 2013, 4:19 AM EDT