home

Json Array

Array: JSON array represents ordered list of zero or more values, array can store string, number, boolean or object in JSON array.

Arrays use square bracket[] notation with elements being separated by (,)comma.

JSON Array of Strings

Here we have simple example code of strings, json array storing String values.

["Red", "Green", "Blue", "Yellow", "Orange", "Pink",]

JSON Array of Numbers

Here we have simple example code of JSON Numbers, json array storing Number values.

[101, 202, 303, 404, 505, 606, 707, 808, 909, 1001]

JSON Array of Booleans

Here we have simple example code of JSON Numbers, array storing of Boolean (True, False) values.

[true, false, false, false, true]

JSON Multidimensional Array

Multidimensional Array means array inside the array know as a JSON Multidimensional Array.

[    
 [ "name", "age", "gender" ],   
 [ 1, 2, 3 ],   
 [ "x", "y", "z" ]   
]