JSON allows for the conversion of a set of data represented in a programming language object into a string. This string can then be easily transmitted over networks or between programs, and can be restored to the data format supported by various programming languages when needed. For example, in PHP, JSON can be restored to an array or a basic object. When using AJAX and needing to pass array values, JSON is required to convert the array into a string.