clean JSON file