View a JSON file or server response with formatting
To display a minified JSON file or a minified JSON server response in a more readable format, select the Pretty-print checkbox.
When you open a JSON file or view a JSON HTTP server response in Microsoft Edge, the content is initially displayed as-is:
If the JSON content has been minified, with its entire content on a single line with empty spaces removed, the JSON is initially displayed in a dense format, wrapped to the window.
If the JSON was formatted with line breaks and indentation, the JSON is displayed as formatted.
To format a minified JSON file or server response:
Open a
.json
file that's minified, such as 128KB-min.json, or go to a URL that returns a minified JSON response.To open a local JSON file, press Ctrl+O on Windows and Linux, or Command+O on macOS, and then select a JSON file.
The minified JSON is initially displayed in a dense format, wrapped to the window:
Select the Pretty-print checkbox:
The JSON file or response is displayed in a readable format, with indentation and line wrapping based on the JSON object content.
Selecting or clearing the Pretty-print checkbox doesn't change the JSON file itself; only how it is displayed.
- Demo page listing demo .json files
- 128KB.json - A non-minified
.json
file. - 128KB-min.json - A minified
.json
file.
- 128KB.json - A non-minified
- MicrosoftEdge / Demos > /json-dummy-data/ - Source directory.