jstoolnpp
jstoolnpp copied to clipboard
Add an option in the Notepad++ menu to escape and unescape a JSON string
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
I'll leave this open to see if any others want it.