what is JSON description with appropriate example

Posted by Ankitsrist under JavaScript on 2/5/2013 | Points: 10 | Views : 1441 | Status : [Member] | Replies : 4
hello,
i know the basics of json, like it is the abbreviation for javascript object notation, it is used to store and exchange data, it is name/value pair..but need practical example...no links please i already googled a lot

thanks in advance




Responses

Posted by: Ankitsrist on: 2/5/2013 [Member] Starter | Points: 25

Up
0
Down
way of using json...

var person={

"name":"ankit",
"age":"21",
"city":"mumbai",
"company":"endroit",
"designation":"s/w engineer"

}
this creates an object we can access it using variable person, by enclosing the variable in curly brace we are indicating that value is an object
to fetch data in this way
Document.Write('person name is:' person.name);

need more help


Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 2/6/2013 [Member] Bronze | Points: 25

Up
0
Down
Hi Ankitsrist,

http://www.w3schools.com/json/default.asp the link gives more ellobrate on JSON

Thanks
Pavan Kumar
Mark Answer if this fits the need

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 2/6/2013 [Member] Starter | Points: 25

Up
0
Down
thanks sir

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kusumas on: 2/6/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Ankitsrist,


Follow below mentioned site it will help you.

http://www.json.org/

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response