Fix last comma in json file