I need assistance with extracting customers from an array based on their area_id. For example, if I provide area_id 7, I should get a new array containing all the customers with area_id 7.
"customers": [
{
"id": "5",
"aname": "Sts Customers",
"type": "2",
"address": "house no e 4",
"area_id": "7",
"cell_no": "03334488",
"opn_type": "Debit",
"opngbl": "2564",
"lat": "33.7997",
"longi": "73.04052769999998",
"company_id": "1",
"acct_no": ""
},
{
"id": "14",
"aname": "New Customer",
"type": "2",
"address": "house no 4",
"area_id": "8",
"cell_no": "7878",
"opn_type": "Credit",
"opngbl": "2541",
"lat": "33.7997",
"longi": "73.04052769999998",
"company_id": "1",
"acct_no": ""
},
{
"id": "15",
"aname": "one more customer",
"type": "2",
"address": "jjkhklj",
"area_id": "8",
"cell_no": "8876987",
"opn_type": "Credit",
"opngbl": "454",
"lat": "33.7997",
"longi": "73.04052769999998",
"company_id": "1",
"acct_no": ""
}
],