jsonabc
jsonabc copied to clipboard
Getting "Incorrect JSON Object" when running locally
I downloaded everything so I could run it locally, but I'm getting an "Incorrect JSON Object" on the below JSON (running it online works just fine). Any suggestions would be greatly appreciated!
Thanks, Sam
{"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }}
It's working fine with the function. I think you miss the step JSON.stringify(). Input should be a JSON string, not an object.