101
JSON Array
JSON array represents ordered list of values. JSON array can store multiple values. It can store string, number, boolean or object in JSON array.
In JSON array, values must be separated by comma.
The [ (square bracket) represents JSON array.
JSON Array of Strings
Let’s see an example of JSON arrays storing string values.
JSON Array of Numbers
Let’s see an example of JSON arrays storing number values.
JSON Array of Booleans
Let’s see an example of JSON arrays storing boolean values.
JSON Array of Objects
Let’s see a simple JSON array example having 4 objects.
JSON Multidimensional Array
We can store array inside JSON array, it is known as array of arrays or multidimensional array.
Next TopicJSON Comments