remove redundant items from json dicts