Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option in the Notepad++ menu to escape and unescape a JSON string #142

Open
javierlarota opened this issue Nov 2, 2023 · 1 comment

Comments

@javierlarota
Copy link

It would be great if the plugin has an option to escape and unescape a JSON in the same window or in a new window

Something like:

From
{"name":"John","age":30,"car":null}

Into
{\"name\":\"John\",\"age\":30,\"car\":null}

or
From

{
  "name": "John",
  "age": 30,
  "car": null
}

Into
{\r\n \"name\": \"John\",\r\n \"age\": 30,\r\n \"car\": null\r\n}

Or the other way around, from an escaped string to an unescaped JSON

From
{\"name\":\"John\",\"age\":30,\"car\":null}
Into
{"name":"John","age":30,"car":null}

Similar to this:
https://www.freeformatter.com/json-escape.html#before-output

@sunjw
Copy link
Owner

sunjw commented Nov 3, 2023

I'll leave this open to see if any others want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants