Skip to content

Commit c35a614

Browse files
committed
Adding JSON viewer explainer
1 parent 81a91c1 commit c35a614

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
43.2 KB
Loading
287 KB
Loading

explainers/JSONViewer/explainer.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# DevTools: In-browser JSON viewer
2+
3+
Authors:
4+
- *[Chris Heilmann](https://twitter.com/codepo8)*, PM, Microsoft Edge
5+
6+
## Status of this feature
7+
8+
This is a proposal for a new feature that is not yet in development.
9+
10+
## Proposal
11+
12+
Currently when you navigate to a JSON file in Microsoft Edge, you get a basic text display of the document.
13+
14+
![JSON displayed as plain text in the browser](current-json-display.png)
15+
16+
When navigating to an HTML document, and selecting "view source" you get a colour-coded display with line numbers instead.
17+
18+
![View source showing HTML in a more detailed fashion than just a text display](view-source.png)
19+
20+
We propose to replace tha basic JSON view with a colour-coded, collapsible and expandable one.
21+
22+
![JSON in browser as a colour-coded, collapsible tree](colour-coded.png)
23+
24+
We are currently investigating the overall browser performance impact of this, which is why the first implementation will be basic.
25+
26+
### Goals
27+
28+
As JSON files are data structures and users want to drill down into the data and analyse it in detail. This is a first step in this direction. In subsequent iterations we want to add more functionality like displaying header data and a raw view, saving and copying data and filtering the information.
29+
30+
### Usage
31+
32+
This functionality will trigger automatically when the browser navigates to a JSON file on the web or the user opens a local one.
33+
34+
## Feedback
35+
Have feedback? We want to hear it! *[Issue #123](link to issue announcing explainer, which will need to be added after first commit)* tracks community feedback on this explainer.

explainers/JSONViewer/view-source.png

519 KB
Loading

0 commit comments

Comments
 (0)