In this article I introduced to you JSON. First, I started with
a small introduction to JSON and the difference between JSON and XML. I
explained in details what JSON is, discussing the JSON data types, showing how
to generate JSON formatted data on the server, how to consume JSON on the
client, and finally, a sample demo that combined most of the features you would
need when using JSON as the main format of exchanging data between the client
and server in an asynchronous way.
Make sure you visit all of the links I have mentioned
throughout the article because they are essential for you to get a better
understanding of AJAX and JSON.
Last but not least, I would like to send a special thanks to
Anand Narayanaswamy, Chief technical editor, ASPAlliance.com and Chrisitian
Wenz, author of Programming ATLAS, that Anand referred me to, who helped me solve
a problem related to IE7. According to Christian, IE7 does not recycle the
existing instance of the XMLHttpRequest object and, therefore, the instance
should be reinitialized at every new request.
Hope you enjoyed this article!!