Wednesday 19 March 2008

What is JSON? JSON vs AJAX!

JSON = JavaScript Object Notation

ICallback & JSON Based JavaScript Serialization: http://aspalliance.com/1537

AJAX request an asyn server call. The response back from the server can be XML, HTML or JSON etc. JSON is ideal for data interchange.

Example JSON

{
"fullname": "Sean Kelly",
"org": "SK Consulting",
"emailaddrs": [
{"type": "work", "value": "kelly@seankelly.biz"},
{"type": "home", "pref": 1, "value": "kelly@seankelly.tv"}
],
"telephones": [
{"type": "work", "pref": 1, "value": "+1 214 555 1212"},
{"type": "fax", "value": "+1 214 555 1213"},
{"type": "mobile", "value": "+1 214 555 1214"}
],
"addresses": [
{"type": "work", "format": "us",
"value": "1234 Main StnSpringfield, TX 78080-1216"},
{"type": "home", "format": "us",
"value": "5678 Main StnSpringfield, TX 78080-1316"}
],
"urls": [
{"type": "work", "value": "http://seankelly.biz/"},
{"type": "home", "value": "http://seankelly.tv/"}
]
}


Learn
http://www.developer.com/lang/jscript/article.php/3596836

No comments: