jneale / Xplore

Xplore: Developer Toolkit for ServiceNow
MIT License
197 stars 147 forks source link

Issue with displaying array containing items with backslashes #59

Closed StonegateGuy closed 2 years ago

StonegateGuy commented 2 years ago

When showing the output of an array (for example when querying a list) that contains a backslash the output is adding extra backslashes to the "gray box" output. It shows correctly in the text output below the gray box. (assuming this has something to do with its being the JavaScript escape char). For example a field containing a file path such as "\Server\Folder1\Folder2\Folder3" is shown as "\\Server\Folder1\Folder2\Folder3" in the gray box at the top.

image

jneale commented 2 years ago

Thanks for your comment. This is actually expected behaviour. The grey text box at the top is the JSON version of the object you are viewing so you can easily copy/paste it into another script somewhere if you need it. Cheers!