You can use any text editor even Notepad to create and modify JSON. Smaller files are easy to read and understand. You need a tool for the large and complex one to quickly format and compress JSON.
In this article, I am going to cover JSON Plugin for Notepad++ which you can use to view, format and compress JSON.
Notepad++ JSON Viewer Plugin
JSONViewer is a plugin for your favorite text editor Notepad++ which helps you to view JSON in Tree view Format. You can quickly format and even compress JSON using this plugin. It also highlights parsing errors as well.
Developer – Kapil Ratnani
Github Repository – JSON-Viewer
Install JSON Viewer Plugin in Notepad++
You can use Plugin Admin or Plugin Manager to easily install this plugin. These are the steps.
Open Notepad++ and Go to Plugins -> Plugin Admin… and Search for JSON Viewer plugin and click Install button to install JSON Viewer plugin in Notepad++.
Sometimes this may not give you the latest plugin version. In that case, install the plugin manually using the steps given below.
Manual Installation Steps,
- Close Notepad++
- Download the latest version JSONViewer plugin and extract NPPJSONViewer.dll file.
- Create NPPJSONViewer subfolder in npp plugins folder.
- Copy NPPJSONViewer.dll to the above folder.
- Restart Notepad++
That’s it. You have successfully installed the plugin.
The plugin should be available under plugin Menu in the toolbar as shown in the below image.
JSON Viewer Plugin to View, Format and Compress JSON
Now let’s see how to use the JSON viewer plugin. We are going to take a sample JSON and show you how it works. You can download the sample JSON from this link.
Show JSON Viewer
Go to Plugins -> JSON Viewer -> Show JSON Viewer. This opens a frame on the left-hand side which shows the TreeView. You can select individual nodes to navigate to the child node.
One thing I observed that when we select any node it does not highlight the same in the Notepad++ document.
Formatting JSON in Notepad++ is also very easy using this plugin. Just select Format JSON options and the plugin format it for you. If there are any parsing error, it will give you an error message saying parsing error.
The compress JSON option is useful when you want to use JSON as the Web Service Payload and want to reduce the size. Just click that option and your JSON will be compressed by removing spaces.
Formatting and Compressing JSON in Notepad++ is very easy, thanks to this plugin. I hope you found this article useful. Please share and subscribe.