{
"view_list": [
{
"id": "1"
},
{
"id": "2"
},
{
"id": "3"
},
[
{
"id": "4"
},
{
"id": "5"
}
],
{
"id": "6"
},
[
{
"id": "7"
},
{
"id": "8"
}
],
{
"id": "9"
},
{
"id": "10"
},
{
"id": "11"
}
]
}
The above JSON i want filter only id="8" .Actually i try filter method in JavaScript not working.
I filter the array inside array. I used filter method, the method not searched inside array. Give the solution any one.