Hi
My response body looks like:
[
{
“assetId”: 100000005,
“name”: “CROW HUT”,
“status”: “OPEN”,
“region”: null,
“x”: 1555519,
“y”: 5428621
},
{
“assetId”: 100001473,
“name”: “Manson-Nicholls Memorial Hut”,
“status”: “OPEN”,
“region”: null,
“x”: 1541459,
“y”: 5316142
},
{
“assetId”: 100001528,
“name”: “Ada Pass Hut”,
“status”: “OPEN”,
“region”: null,
“x”: 1555272,
“y”: 5316286
},
{
“assetId”: 100001561,
“name”: “Lake Christabel Hut”,
“status”: “OPEN”,
“region”: 4567,
“x”: 1538742,
“y”: 5301420
},
{
“assetId”: 100001589,
“name”: “Croesus Top Hut”,
“status”: “OPEN”,
“region”: null,
“x”: 1467429,
“y”: 5316392
},
{
“assetId”: 100001595,
“name”: “Mudflats Hut”,
“status”: “OPEN”,
“region”: 1234,
“x”: 1466730,
“y”: 5251773
}
]
Some of the data in the array has region as null
I want to retrieve asset ids of the data where region is not null
maybe assign that to another array
Can someone please help.
Thanks