dipsthorat
31 days agoOccasional Contributor
How to filter out data from json array
I have one API response , where I need to filter out where "infrabelClassification" = 1, how and which assertion is useful ?
[
{
"id": 1,
"commercialLongNameFrench": "Aachen Hbf (DE)",
"infrabelClassification": 1
},
{
"id": 2,
"commercialLongNameFrench": "Aachen-Rothe-Erde",
"infrabelClassification": 2
},
{
"id": 3,
"commercialLongNameFrench": "Aachen-Süd",
"infrabelClassification": 1
},
]