fixing json syntax error