jstoolnpp icon indicating copy to clipboard operation
jstoolnpp copied to clipboard

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

Open javierlarota opened this issue 1 year ago • 6 comments

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

javierlarota avatar Nov 02 '23 20:11 javierlarota

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

sunjw avatar Nov 03 '23 01:11 sunjw