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 OverflowUse 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 )"
A tool better than Notepad++ for reading/writing jsons?
How can I jump to the parent node of a JSON object in Notepad++?
Can't format large one-line JSON file (native formatter, Beautify and Prettier don't work)
At this point I would consider using an external program to do it.
There are multiple approaches and google should help. If you have python installed (on Linux or otherwise), it has a built-in module to help.
More on reddit.com