JSON can convert a set of data represented in a programming language object to a string, then you can easily pass this string between the network or program, and when needed, it will be reduced to the data format supported by each programming language, for example, in PHP, you can reduce the JSON to an array or a basic object. In the use of AJAX, if you need to use an array of values, then you need to use JSON to convert the array to a string.