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
Issue: if the object contains string data with single quoted value in it, e.g. "Test 'data'", JSON.stringify(results) returns result wrapped in ` (Grave Accent mark).
Actual result:
Expected result (without ` ): {"analyzer":"Test 'data'","details":{"range":{"start":"1","end":"2"},"description":"Hello"}}
You may want to request this feature on https://github.com/nodejs/node/issues instead. As the representation of strings in iJavaScript is based on the Node.js REPL.
It's defined by util.inspect. There are a few options to customise the output of util.inspect, but I don't see any options to achieve what you want (Node v22).
Unlike the REPL, iJavaScript lets you overwrite util.inspect. So, the following workaround may work for you:
Issue: if the object contains string data with single quoted value in it, e.g.
"Test 'data'"
,JSON.stringify(results)
returns result wrapped in ` (Grave Accent mark).Actual result:
Expected result (without ` ): {"analyzer":"Test 'data'","details":{"range":{"start":"1","end":"2"},"description":"Hello"}}
Sample code:
The text was updated successfully, but these errors were encountered: