Forum Discussion
Sorry I posted the question in wrong thread.
input will be like this
{
"totalCount": 4,
"dataList": [
{
"IfaNumber": "1",
"alink": "",
"agroupId": ""
},
{
"IfaNumber": "2",
"alink": "",
"agroupId": ""
},
{
"IfaNumber": "3",
"alink": "",
"agroupId": ""
},
{
"alink": "",
"agroupId": ""
}
]
}
Output
["1","2",3"]
this question
Aleksandar_A
2 years agoContributor III
You can try with the following expression:
$dataList.map(x => x.get('IfaNumber',null)).filter((x,ind,arr) => x != null && arr.indexOf(x) == ind)
Let me know if this helps.
Regards,
Aleksandar.