This plugin is designed to display JSON strings in a Treeview format and highlight the error position if any parsing issues occur. It's a simple and efficient tool, compatible with Notepad++.
Copy the file NPPJSONViewer.dll
to the pluginsNPPJSONViewer
folder in the Notepad++ installation directory..
Restart Notepad++ and ensure the plugin appears under the Plugins menu.
Open a document containing a JSON string (or paste in some JSON text).
Select the JSON fragment and go to Plugins > JSON Viewer > Show JSON Viewer or press or pressCtrl+Alt+Shift+J.
Voila, that's it! If the JSON is valid, it will be displayed in a Treeview format.
New features:
Navigate directly to the JSON node in the editor upon node selection (using left mouse click or arrow keys).
Select the JSON key in the editor when double-clicking on a node.
Bug/regression fixes:
Updated to the latest RapidJSON parser.
Minor code enhancements for improved performance.
Added unit tests
New features:
Sort ascending by key
Add file name in the title for visibility
Bug/regression fixes:
Updated license text on UI as per GitHub link
Excplicit callout for no support on multi selection
Some other minor code and UI enhancements
Bug/regression fixes:
"Copy value" / "Copy" not always return complete text
Format JSON option does not work if focused tab is in other view
Corrected some typos on setting dialog
Updated icons to match with dark mode as well
Removed quotes from the key in Treeview
Some other minor enhancements
New feature:
Replace value 'undefined' with 'null'. This is configurable feature.
Bug/regression fixes:
Cyrillic text is not properly shown in json tree view dialog
New feature:
Make json highlighter configurable
Bug/regression fixes:
Handle json for both the views.
Update treeview on reopen
When file type is json, then error message is shown twice on npp launch if viewer dock was kept opened on previous instance
Don't show error message on startup for non json files
New feature:
Show element count for list/array
Bug/regression fixes:
Crash fix: Setting dialog is not shown if about dialog is opened before it.
Set language type JSON properly
Some minor UI enhancements
New feature:
Search in json tree window
Handle NaN, Inf, -Inf, Infinity, -Infinity properly
Bug/regression fixes:
Handle all types of arrays which does not have any key
Corrected typos in setting json
Don't use double qoutes for other than string type
Provided UI to control formatting option via setting dialog
Setting for indentation
Setting for line ending
Setting for line format
Make json parsing configurable e.g. ignore trailing comma, ignore comment
Added couple of new feature
Follow json tree for current tab if it is json file
Auto format json file when opened (by direct or by tab switching)
Few bug/regression fixes
Redeveloped UI
Provided menu icon
Json view panel is redesigned which is button like, refresh, validate, format etc.
It uses well performed class instead of plain function
Current selected node path is given on the bottom of json view window
Many feature support such as copy node, copy value, copy path, expand/collapse all etc.
Few bug fixes
Support for ARM64
Dropped Windows XP support as Notepad++ is no more supporting Windows XP.
Upgrade Visual Studio to 2022
issue-55 Format JSON should also set the language to JSON #FeatureRequest
issue-56 Format Should Follow Line Break Settings
issue-57, issue-60 "Should add a function to remove line breaks and spaces" Thanks @neoarc
issue-68 Crashing Notepad++
issue-72 tab setting from notepad++ settings are not honored
issue-73 Display tree for Array of Object
issue-80 use line ending setting from editor
Relaxed parsing. Supports trailling commas, comments(only parsing), NaN and infinity JS literals.
Fix Access Violation issue #51
Fix issue #47
Fix issue #43
Reads tab setting from notepad++ settings
Now using rapidjson
64 bit support. Thanks @chcg
Select all text when no selection Thanks @vakio
fix memory leak and close About dialog when clicking "Close" button Thanks @quangnh89
Fixed display of boolean values. Now displaying as "key":True/False Thanks @yoyokenny
Fixed hang on faulty JSON. Thanks @vancekic
Fixed display of UTF-8 characters.
Fixed bug "#3 quoted doublequotes-Jan Huschauer"
Added a command to format JSON
Now displays a message box when JSON string is not selected.
Fixed dialog display issue, that occured in 1.16 release.
Fixed bug - 3305433 do not find error on second try and do not build tree
Fixed a memory leak..was not deallocating memory allocated to json strings
Fixed bug 3203739 "Unable to parse JSON Arrays"
Fixed hotkey, now press CTRL+SHIFT+ALT+J(default).
Marks error position in JSON