Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON viewer: removing the experimental flag and adding a note about window.open #2873

Merged
merged 5 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
22 changes: 3 additions & 19 deletions microsoft-edge/devtools-guide-chromium/json-viewer/json-viewer.md
captainbrosset marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: MSEdgeTeam
ms.author: msedgedevrel
ms.topic: conceptual
ms.prod: microsoft-edge
ms.date: 01/04/2023
ms.date: 10/17/2023
---
# View formatted JSON

Expand All @@ -20,23 +20,7 @@ The **JSON viewer** improves readability of JSON data in several ways:
* Objects can be collapsed or expanded.
* The JSON viewer matches your operating system's dark or light theme.

The **JSON viewer** tool is included as an experiment in Microsoft Edge starting with version 110.


<!-- ====================================================================== -->
## Enable the JSON viewer

By default, the **JSON viewer** isn't enabled. To enable the JSON viewer experiment:

1. Go to `edge://flags`.

1. In the **Search flags** text field, type **JSON viewer**.

1. In the **JSON Viewer** dropdown menu, select **Enabled**.

1. Click the **Restart** button which appears in the lower right:

![The edge://flags page showing the JSON viewer flag](./json-viewer-images/enable-flag.png)
**Note:** The **JSON viewer** is not supported in windows that are opened by using the `window.open` JavaScript method. In windows opened with `window.open`, JSON data is displayed as a single line of text, without formatting or syntax highlighting.
captainbrosset marked this conversation as resolved.
Show resolved Hide resolved


<!-- ====================================================================== -->
Expand Down Expand Up @@ -85,7 +69,7 @@ To view invalid JSON data:

1. Type a URL that returns invalid JSON data in the address bar. For example, use [this sample invalid JSON response](https://microsoftedge.github.io/Demos/json-dummy-data/missing-colon.json). You can find other invalid samples of JSON responses at [MicrosoftEdge / Demos > json-dummy-data](https://microsoftedge.github.io/Demos/json-dummy-data/#invalid-json).

1. Microsoft Edge detects that the file contains invalid JSON data, highlights it, but does not reformats it.
1. Microsoft Edge detects that the file contains invalid JSON data, highlights it, but does not reformat it.
captainbrosset marked this conversation as resolved.
Show resolved Hide resolved

1. Open the **Console** tool by pressing **Ctrl+Shift+J** (Windows, Linux) or **Command+Option+J** (macOS).

Expand Down
Loading