You have always used the Asynchronous JavaScript and XML
(AJAX) to allow a web application to send asynchronous requests from the client
browser to the server to retrieve some data and then let the client browser
running your application receive a server response again in an asynchronous
fashion. Data interchange usually was done either in the form of simple human
readable strings or in an XML format.
In this article I will be introducing you to a new way of
data interchange between the client and server. The idea discussed will focus
on JavaScript Object Notation (JSON). I will not be discussing what AJAX is and how the AJAX response is processed on the client side especially if the data
received from the server is an XML data, since this is out of the topic of this
article, however, I will simply show you how to use JSON format to exchange
data.