clean json files for easy querying