Here i m given some data in Json formate. I want to fillter it with it atrribute .
[
{
"_id": "1",
"name": "ShalimarBhagh",
"city_id": "1",
"location_id": "1",
"country_name": "India"
},
{
"_id": "2",
"name": "Janpat, Delhi",
"city_id": "1",
"location_id": "2",
"country_name": "India"
},
{
"_id": "3",
"name": "MSP, Delhi",
"city_id": "1",
"location_id": "3",
"country_name": "India"
},
{
"_id": "4",
"name": "MSP, Pune",
"city_id": "2",
"location_id": "4",
"country_name": "India"
},
{
"_id": "5",
"name": "Anand Pur",
"city_id": "1",
"location_id": "5",
"country_name": "India"
},
]
From the Above Json file just want to display only those object which has arrtibute with that value ( name:"Delhi")
it Should be Displayed like that by using node.js and React
{
"_id": "2",
"name": "Janpat, Delhi",
"city_id": "1",
"location_id": "2",
"country_name": "India"
},
{
"_id": "3",
"name": "MSP, Delhi",
"city_id": "1",
"location_id": "3",
"country_name": "India"
},