I want to remove the duplicates from each array in this JSON:
{"abc": ["five" ],"pqr": ["one","one","two","two","three","three","four","four" ],"xyz": ["one","one","two","two","four" ]}Output I am expecting after removing the duplicates:
{"abc": ["five" ],"pqr": ["one","two","three","four" ],"xyz": ["one","two","four" ]}I tried map, uniq, group_by with jq but nothing helped