JSON-Viewer icon indicating copy to clipboard operation
JSON-Viewer copied to clipboard

Switching from compressed json string to pretty print mode looses quotes for forward slashes

Open bysbhah opened this issue 3 years ago • 1 comments

Hello and at first, thank you for the great plugin. It helps me a lot every day.

i found the following string:

[{"FullName":"C:\\123467756\\Z","LastWriteTimeUtc":"\/Date(1600790697130)\/"},{"FullName":"C:\\123467756\\Z\\B","LastWriteTimeUtc":"\/Date(1618852147285)\/"}]

if converted using the option: "JSON Viewer"::"Format Json" looses the "\" in front of the Date String. The result is:

[
    {
        "FullName": "C:\\123467756\\Z",
        "LastWriteTimeUtc": "/Date(1600790697130)/"
    },
    {
        "FullName": "C:\\123467756\\Z\\B",
        "LastWriteTimeUtc": "/Date(1618852147285)/"
    }
]

i am having wrong expectations o is that something not supposed to happen?

If it is a bug, i would kindly ask for a fix.

Best Regards, Rob

bysbhah avatar Apr 19 '21 21:04 bysbhah

Related to https://github.com/kapilratnani/JSON-Viewer/issues/78#issuecomment-965619710

user21760 avatar Nov 10 '21 18:11 user21760