fixing json formatting