Skip to content

Format JSON replaces unicode characters code with the actual unicode character #78

Open
@git-hub-user

Description

@git-hub-user

When I have

{"FreeTextInput":"\u003Cscript\u003Ealert(\u0022links\u0022);\u003C/script\u003E"}

in a Notepad++ editor tab, select the text and apply menu Plugins - JSON Viewer - format JSON, the result is:

{
	"FreeTextInput": "<script>alert(\"links\");</script>"
}

I am not sure if this is by design, but I surely surprised me.

If doesn't matter if the Encoding is set to ANSI or to UTF-8.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions