jsonabc icon indicating copy to clipboard operation
jsonabc copied to clipboard

Getting "Incorrect JSON Object" when running locally

Open USS-Sandhu opened this issue 3 years ago • 1 comments

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()"} ] } }}

USS-Sandhu avatar Jul 13 '21 12:07 USS-Sandhu

It's working fine with the function. I think you miss the step JSON.stringify(). Input should be a JSON string, not an object.

smit-luvani avatar May 06 '23 18:05 smit-luvani