Skip to content

Bug with JSON file containing escaped backslashes ("\\") #1

@hokiedsp

Description

@hokiedsp

Hey, thank you for making this vscode extension available. I've been using it extensively. I'm here to report a bug that I just encountered.

When JSON file contains a string with escaped backslash ('\') followed by a character which is associated with another escaped character, it breaks the data.

I encountered this for JSON file containing a Windows file path, e.g.,

{
"myfile" : "C:\\folder\\thisone\\file.txt"
}

Running the extension on this file yields

{
"myfile" : "C:\\folder\thisone\\file.txt"
}

One of the backslash gets omitted, resulting in "C:\folderhisone\file.txt"

Hope this makes sense. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions