Change the format of JSON file