json array data example
Example 1: json with multiple objects
{
"cars": {
"Nissan": [
{"model":"Sentra", "doors":4},
{"model":"Maxima", "doors":4},
{"model":"Skyline", "doors":2}
],
"Ford": [
{"model":"Taurus", "doors":4},
{"model":"Escort", "doors":4}
]
}
}
Example 2: json arrays
{
"array": [{1,2,3,4,5,6}]
}
Example 3: hwo to access arary in json
console.log(dataJS);
console.log(dataJS[0].eee1);
console.log(dataJS[0].comments[0]);