fixing json syntax errors