I have data in JSON format as
"data1": [
{
"id": "01",
"loc": "India",
"count": "2"
},
{
"id": "02",
"loc": "India",
"count": "200"
},
{
"id": "01",
"loc": "New York",
"count": "500"
}
]
I want to retrieve count with the condition that
"id" = "loc" = and the count should get retrieved
For e.g. If will give the condition as "id" = "01" and "loc" = "New York" it should retrieve "count" = "500"