Use JSTool
As of Notepad++ v7.6, you can use the Plugin Admin option in Notepad++ to install JSTool.
Manual Install
- Download it from https://www.sunjw.us/jstool/npp/#download
- Copy JSMinNpp.dll to the plugin directory of Notepad++. You may need to create a directory named "JSMinNPP" in the plugin directory after version 7.6.3
Here's an example of JSON that's been formatted using the tool:
{
"menu" : {
"id" : "file",
"value" : "File",
"popup" : {
"menuitem" : [{
"value" : "New",
"onclick" : "CreateNewDoc()"
}, {
"value" : "Open",
"onclick" : "OpenDoc()"
}, {
"value" : "Close",
"onclick" : "CloseDoc()"
}
]
}
}
}

Tip: Select the code you want to reformat, then Plugins | JSTool | JSFormat.
Answer from Dan on Stack OverflowVideos
Use JSTool
As of Notepad++ v7.6, you can use the Plugin Admin option in Notepad++ to install JSTool.
Manual Install
- Download it from https://www.sunjw.us/jstool/npp/#download
- Copy JSMinNpp.dll to the plugin directory of Notepad++. You may need to create a directory named "JSMinNPP" in the plugin directory after version 7.6.3
Here's an example of JSON that's been formatted using the tool:
{
"menu" : {
"id" : "file",
"value" : "File",
"popup" : {
"menuitem" : [{
"value" : "New",
"onclick" : "CreateNewDoc()"
}, {
"value" : "Open",
"onclick" : "OpenDoc()"
}, {
"value" : "Close",
"onclick" : "CloseDoc()"
}
]
}
}
}

Tip: Select the code you want to reformat, then Plugins | JSTool | JSFormat.
You can use JSON Viewer. For Notepad++ v.7.6+, Plugins Admin... is available to install it:
- Open the Menu option "Plugins" -> "Plugins Admin..."
- Search for "JSON Viewer"
- Check JSON Viewer in List
- Click on Install Button
- Restart Notepad++
- Select JSON text
- Go to "Plugins" > "JSON Viewer" > "Format JSON ( Ctrl + Alt + Shift + M )"
You might be able to use a JSON formatter to accomplish the task (since it would likely complain or do something wrong -- say, like indent improperly -- if the JSON's invalid). See Is there an extension to reindent JSON in Notepad++?. Similarly, there's a JSONViewer Notepad++ plugin the might help in the same way.
Another less-than-ideal alternative would be to just use one of the online JSON validators.
There is plugin for NPP+ called JSLint. It is a plugin to validate JavaScript-code, but it works also just fine with JSON-files.
Is there a tool that can extract the json values to be altered in a manner less manual and more clean than using a straight text editor?