You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/web-platform/json-viewer.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,22 +12,28 @@ ms.date: 03/05/2025
12
12
13
13
To display a minified JSON file or a minified JSON server response in a more readable format, select the **Pretty-print** checkbox.
14
14
15
-
When you open a JSON file or view a JSON HTTP server response in Microsoft Edge, the content is initially displayed as-is. For example, if the JSON was minified, with its entire content on a single line with empty spaces removed, the JSON is initially displayed in a dense format, as wide lines, wrapped.
15
+
When you open a JSON file or view a JSON HTTP server response in Microsoft Edge, the content is initially displayed as-is:
16
16
17
+
* 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.
17
18
18
-
To format a minified JSON file or server response:
19
+
* If the JSON was formatted with line breaks and indentation, the JSON is displayed as formatted.
19
20
20
-
1. Open a `.json` file that's minified, such as ([128KB-min.json](https://microsoftedge.github.io/Demos/json-dummy-data/128KB-min.json)), or go to a URL that returns a minified JSON response:
21
21
22
-

22
+
To format a minified JSON file or server response:
23
+
24
+
1. Open a `.json` file that's minified, such as [128KB-min.json](https://microsoftedge.github.io/Demos/json-dummy-data/128KB-min.json), or go to a URL that returns a minified JSON response.
23
25
24
26
To open a local JSON file, press **Ctrl+O** on Windows and Linux, or **Command+O** on macOS, and then select a JSON file.
25
27
28
+
The minified JSON is initially displayed in a dense format, wrapped to the window:
29
+
30
+

31
+
26
32
1. Select the **Pretty-print** checkbox:
27
33
28
34

29
35
30
-
The JSON file or response is displayed in a readable format, with indentation and line wrapping.
36
+
The JSON file or response is displayed in a readable format, with indentation and line wrapping based on the JSON object content.
31
37
32
38
Selecting or clearing the **Pretty-print** checkbox doesn't change the JSON file itself; only how it is displayed.
0 commit comments