You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a valid (checked in http://jsonlint.com/ ) json file that I try to save under another file name using the "save as" function. It fails to save with the error:
VM328:15 Uncaught SyntaxError: Unexpected token , in JSON at position 384
The json generated by your program is in error. Note under "timeStart" there is no value causing the incorrect JSON format:
{
"file": {
"absPath": "/home1/dinther/public_html/ships2career/scenarios/lesson2_new.json",
"relPath": "/scenarios/lesson2_new.json",
"name": "lesson2_new.json",
"path": "/home1/dinther/public_html/ships2career/scenarios",
"bytes": "",
"modifiedDT": "",
"type": "unknown",
"exists": false
},
"action": {
"initial": "save",
"final": "nothing",
"timeStart": ,
"timeEnd": 0,
"timeTaken": 0,
"csrf": "01bc5f994276fc2931e6e888a2e4d74d",
"doNext": "var loadedFile = document.createElement(\"textarea\");loadedFile.value = \"\";var refreshFile = top.ICEcoder.ask(\"Sorry, this file has changed outside of ICEcoder, cannot save\\n/home1/dinther/public_html/ships2career/scenarios/lesson2_new.json\\n\\nReload this file and copy your version to a diff pane?\\n(left side = file from server, right side = unsaved file)\");if (refreshFile) {var cM = top.ICEcoder.getcMInstance();var thisTab = top.ICEcoder.selectedTab;var userVersionFile = cM.getValue();/* Revert back to original */cM.setValue(loadedFile.value);top.ICEcoder.savedPoints[thisTab-1] = cM.changeGeneration();top.ICEcoder.savedContents[thisTab-1] = cM.getValue();top.ICEcoder.openFileMDTs[top.ICEcoder.selectedTab-1] = \"\";top.ICEcoder.openFileVersions[top.ICEcoder.selectedTab-1] = \"0\";cM.clearHistory();/* Now for the new version in the diff pane */top.ICEcoder.setSplitPane('on');var cMdiff = top.ICEcoder.getcMdiffInstance();cMdiff.setValue(userVersionFile);};top.ICEcoder.serverMessage();top.ICEcoder.serverQueue(\"del\",0);top.ICEcoder.switchMode();"
},
"status": {
"error": false,
"errorStr": "false",
"errorMsg": "None"
}
}
Version v5.7
I have a valid (checked in http://jsonlint.com/ ) json file that I try to save under another file name using the "save as" function. It fails to save with the error:
VM328:15 Uncaught SyntaxError: Unexpected token , in JSON at position 384
The json generated by your program is in error. Note under "timeStart" there is no value causing the incorrect JSON format: