Friday, January 25, 2013

JSON


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

Introduction to JSON
JavaScript Object Notation.
JSON is a lightweight text-based open standard data-interchange format.
You can read and write JSON easily.

JSON is derived from a subset of JavaScript programming language (Standard ECMA-262 3rd Edition—December 1999).

It is entirely language independent and can be used with most of the modern programming languages.
JSON files are saved with .json extension.
Internet media type of JSON is "application/json".

A simple example of JSON
{
"Students": [
{ "Name": "Amit Goenka",
"Major": "Physics"
},
{
"Name": "Smita Pallod",
"Major": "Chemistry"
},
{
"Name": "Rajeev Sen",
"Major": "Mathematics"
}
]
}

The above example shows information about three students - their name and major subjects are stored using JSON.

Though you need to read and understand JSON structures to understand the concept of JSON better, the following image may help you to understand the concept of JSON a little better.