fixing json formatting error