A single-file, zero-dependency JSON viewer that runs in the browser. It renders any JSON file as an interactive tree with a side-by-side schema inference panel.
The live version can be seen in https://yk5.github.io/jsonview/viewer.html.
The GitHub project is yk5/jsonview
GitHub page is https://yk5.github.io/jsonview/
0-2,4).json file from disk via the Load buttonTab key indentation supportCtrl/Cmd + Enter to applyThe live version is at https://yk5.github.io/jsonview/viewer.html.
npm install
npm run build # produces src/viewer.html
npm run dev # rebuild on every save (watch mode)
npm run typecheck # TypeScript type checking
npm test # run unit tests
Open src/viewer.html in a browser after building.
.json file, or click Edit to paste JSON manually.0-2,4) in the levels input and press Enter or click levels to filter by depth.| Type | Color |
|---|---|
| string | blue |
| number | purple |
| boolean | red |
| null | gray |
| object | green |
| array | orange |