4
Answers

what is JSON?purpose of JSON?

Dipika Shah

Dipika Shah

11y
1.1k
1
what is JSON and use of it?
how to develop prototype using JSON?
plz explain with example.
Answers (4)
0
Sunny  Sharma

Sunny Sharma

NA 18.4k 1m 11y
Hi Deepika,

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!

Accepted
0
Dipika Shah

Dipika Shah

NA 106 47.3k 11y
Thanks to all...
0
Jignesh Trivedi

Jignesh Trivedi

NA 61k 14.2m 11y

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

0
Riyaz Akhtar

Riyaz Akhtar

NA 1.6k 318.2k 11y
Check out the below links: 

http://www.w3schools.com/json/default.asp

a
lso check the next chapter of above link.