cleanup json file