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