Fix trailing comma in json