Skip to content

Commit 9e32cb6

Browse files
committed
polish "wrap"
1 parent cf10876 commit 9e32cb6

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

microsoft-edge/web-platform/json-viewer.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,28 @@ ms.date: 03/05/2025
1212

1313
To display a minified JSON file or a minified JSON server response in a more readable format, select the **Pretty-print** checkbox.
1414

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:
1616

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.
1718

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.
1920

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:
2121

22-
![A .json file that's minified, initially opened in Edge](./json-viewer-images/minified-json-file-as-is.png)
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.
2325

2426
To open a local JSON file, press **Ctrl+O** on Windows and Linux, or **Command+O** on macOS, and then select a JSON file.
2527

28+
The minified JSON is initially displayed in a dense format, wrapped to the window:
29+
30+
![A .json file that's minified, initially opened in Edge](./json-viewer-images/minified-json-file-as-is.png)
31+
2632
1. Select the **Pretty-print** checkbox:
2733

2834
![A .json file that's minified, viewed with Pretty-print selected](./json-viewer-images/minified-json-file-pretty-printed.png)
2935

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.
3137

3238
Selecting or clearing the **Pretty-print** checkbox doesn't change the JSON file itself; only how it is displayed.
3339

0 commit comments

Comments
 (0)