var arr = [
[
{
"id": "1",
"name": "Category1"
},
{
"id": "2",
"name": "Child1"
}
],
[
{
"id": "1",
"name": "Category2"
},
{
"id": "2",
"name": "Child2"
}
]
];
console.log('start');
//console.info(arr[0][1]);
//var cnt = arr.length,
// res = [];
for (var i = 0; i<arr.length; i++)
{
for (var j = 0; j<arr[i].length; j++) {
//console.log(arr[i][j].name);
for(var n in arr[i][j]) {
if(n=='name') {
console.log(arr[i][j][n]);
}
}
}
}
console.log('end');