Skip to content

jsonlint does not properly process double backslash #139

@HouzuoGuo

Description

@HouzuoGuo

Merry Christmas and happy new year!

I noticed this bug when I tried to format a string that looks like a Windows file path. Here's a minimal example:

echo '{"a": "\\\\b\\\\"}' | jsonlint
{
  "a": "\b\\"
}

The value of a string should have been \\b\\.

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