Json ( JavaScript Object Notation) is the data interchange format used to transport data between pages, you can know more about Json here. Please note that PHP5.2 onwards Json support is built in and you can verify this by using your PHP info command.
We will learn some PHP commands on how to convert data array to Json string to transport the data across the pages.
Here it is how it will look within your php info on Json support.
If you are getting the above detail in your php info command then you can directly use the PHP Json functions without adding any additional class to your script.
Json with Ajax and JQuery
There are built in functions available in Jquery to handle Json data formats. This makes a good combination for building applications quickly with less coding.
Read more on how getJSON function is used in Jquery to read and display records