list of json code example
Example 1: json example list of objects
{
"foos" : [
{
"prop1":"value1",
"prop2":"value2"
},
{
"prop1":"value3",
"prop2":"value4"
}
]
}
Example 2: json arrays
{
"array": [{1,2,3,4,5,6}]
}
Example 3: json example list of objects
{
"foos" : [{
"prop1":"value1",
"prop2":"value2"
}, {
"prop1":"value3",
"prop2":"value4"
}]
}
Example 4: hwo to access arary in json
console.log(dataJS);
console.log(dataJS[0].eee1);
console.log(dataJS[0].comments[0]);