JSON mit Notepad++ formatieren („pretty print“)

Notepad++ ist DAS Allzweck-Tool für sämtliche Textformate.

Ich verwende es auch, um JSON results von Webservices zu untersuchen.
Um den JSON-Baum besser lesen zu können, habe ich mir das Plugin „JSON Tools“ in Notepad++ installiert.

Notepad++ Plugin-Verwaltung
Notepad++ Plugin-Verwaltung

Ich habe darauf hin ein Beispiel-JSON-File in Notepad++ geladen:

Unformatiertes / minified JSON File
Unformatiertes / minified JSON File

Zum Formatieren rufe ich das Plugin auf:

Plugins > JsonTools > Pretty-print current JSON File

Aufruf des Notepad++-Plugins "JSON Tools"
Aufruf des Notepad++-Plugins „JsonTools“

Darauf hin wird das JSON-File formatiert ausgegeben:

Formatierte Darstellung des JSON-Files
Formatierte Darstellung des JSON-Files

Image Credits: Don Ho