Looking for notepad++ Keywords? Try Ask4Keywords

notepad++ JSON Viewer


JSON Viewer SourceForge is a plugin for JSON visualization and formatting. It is useful for indenting /formatting JSON documents and can be used to browse complex JSON file using a treeview tool.

The following image shows the commands offered by the plugin:

enter image description here

Starting from an unformatted JSON fragment (Example from http://www.json.org ):

{"glossary": {"title": "example glossary","GlossDiv": {"title": "S","GlossList": {"GlossEntry": {"ID": "SGML","SortAs": "SGML","GlossTerm": "Standard Generalized Markup Language","Acronym": "SGML","Abbrev": "ISO 8879:1986","GlossDef": {"para": "A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso": ["GML", "XML"]},"GlossSee": "markup"}}}}}

To format and indent the code:

  • select all the json fragment
  • click "Plugins"/"JSON Viewer"/"Format JSON" or use the shortcut Ctrl + Alt + Shift + M

This is the resulting formatted code:

enter image description here

The plugin can also show a treeview browsable version of the JSON fragment:

  • select all the json fragment
  • click "Plugins"/"JSON Viewer"/"Show JSON Viewer" or use the shortcut Ctrl + Alt + Shift + J

The following screenshot shows how the plugin renders the JSON structure:

enter image description here