โ09-13-2021 07:28 PM
Like below json structure, we want remove wd:Compensation_Element_Reference/wd:ID:@type=WID,
and just leave wd:ID:@type=Compensation_Element_ID
โ09-13-2021 10:53 PM
Hi @maisie_wang , from this image itโs difficult to replicate the value but you can add one mapper and
drag and drop till wd:ID and then put ?(value[โ@wd:typeโ] == 'Compensation_Element_ID) inside that wd:ID[here]. If you still face issue please share the json.
jsonPath($, โ$till Compensation_Reference.wd:ID [?(value[โ@wd:typeโ] == 'Compensation_Element_ID)]โ)
โ09-13-2021 10:55 PM
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
โ09-15-2021 05:48 AM
Hi @maisie_wang, a json parser snap and the filter path parameter in the snap might do the trick.