A JSON array contains zero, one, or more ordered elements, separated by a comma. The JSON array is surrounded by square brackets [ ].
A JSON array is zero terminated, the first index of the array is zero (0). Therefore, the last index of the array is length - 1.
In contrast to regular arrays from the BDL, the elements of a JSON array can be of different data types. The following data types are allowed for JSON arrays:
| string | surrounded by quotation marks (" ") |
| number | |
| float | |
| array | JSON array (can be nested) |
| object | JSON object |
| boolean | true or false |
| empty | null |
[ ] //Empty JSON array
[ 0, 1, 2, 3, 4, 5]
[ “StringValue”, 10, 20.13, true, null ]
[
{
“Name” : “Nested Object”
},
[ 10, 20, true, 40, “Nested Array” ]
]