JSON (Java Script Object Notation) provides a simple data format for the exchange of information between the browser and server. In other words JSON is light weight data-interchange format. Now you can see from above code that it has the potential to store any data type of information. We can store strings, integer, float, arrays, function or even other objects inside as per our requirement and JSON does not even bother about the type of data.
You can find the answers to the following questions in this tutorial: JSON Javascript Tutorial
(1) Why JSON
(2) Using JSON?
(3) Accessing data in JSON
(4) Get JSON via AJAX
(5) JSON with other sever side scripts
(6) Future of JSON