Skip to content

Formatter sometimes hangs up because of escaped double quotes in string literals #2

@ThomasGirard

Description

@ThomasGirard

The following json string cannot be formatted. If one selects it and uses "Format JSON", Notepad++ will hang.

{"k0":[{"k1":"a\"b\"","k2":{"k3":"a\"b\"c"}}]}

There are probably shorter examples. But this basic example works properly :

{"k": "\"v\""}

The same string without the escaped double quotes will format properly to

{
    "k0": [{
        "k1": "ab",
        "k2": {
            "k3": "abc"
        }
    }]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions