json array to object code example
Example 1: json arrays
{
"array": [{1,2,3,4,5,6}]
}
Example 2: hwo to access arary in json
console.log(dataJS);
console.log(dataJS[0].eee1);
console.log(dataJS[0].comments[0]);
{
"array": [{1,2,3,4,5,6}]
}
console.log(dataJS);
console.log(dataJS[0].eee1);
console.log(dataJS[0].comments[0]);