clean json file