fixing json format error