correcting bad json format