maisie_wang
4 years agoNew Contributor
How to filter json data
Like below json structure, we want remove wd:Compensation_Element_Reference/wd:ID:@type=WID,
and just leave wd:ID:@type=Compensation_Element_ID
Hi @maisie_wang ,
Use a mapper, and map your incoming path up until “@wd:ID”. Than use the following expression:
$…wd:ID.filter(x=>x.get(‘@wd:type’) != ‘WID’)
Regards,
Bojan