correcting the format of the json