JSON Tree Viewer
April 14, 2026 ยท View on GitHub
A VS Code extension for JSON file visualization. Provides a visual tree view for browsing, searching, and querying JSON files using JSONata.
Features
- ๐ณ Visual tree navigation of JSON data with expand/collapse support
- ๐ Search with next/previous match navigation
- ๐ Query and Transform with JSONata expressions
- ๐ฏ Copy Value - Unescape JSON strings within JSON payload (Right Click + Copy Value)
- ๐ Locate in File - Right-click a tree node and jump to its location in the source editor
- ๐ JSON5 support - View JSON5 files
- ๐ Auto-refresh on file save
- ๐ Internationalization - English, Chinese, Japanese
Preview
See the extension in action:
Installation
From VS Code Marketplace
Search for tlcsdm-json-tree-view in the VS Code Extensions panel.
From VSIX File
- Download the
.vsixfile from the Releases page - In VS Code, go to Extensions โ ยทยทยท โ Install from VSIX
From Jenkins
Download from Jenkins
Usage
Open JSON Tree View
- Open a JSON, JSONC, or JSON5 file in VS Code
- Click the tree icon in the editor title bar, or:
- Use keyboard shortcut
Ctrl+Shift+J(Cmd+Shift+Jon macOS) - Right-click in the editor โ "Open JSON Tree View"
- Right-click a JSON file in the Explorer โ "Open JSON Tree View"
- Run the command
JSON Tree View: Open JSON Tree Viewfrom the Command Palette
- Use keyboard shortcut
Search
Use the search bar at the bottom of the tree view to find content. Navigate between matches with the โ/โ buttons or Enter/Shift+Enter.
JSONata Query
Enter a JSONata expression in the input field at the bottom to query and transform the JSON data.
For a comprehensive guide on JSONata expressions, see the JSONata Expression Guide.
Copy Value
Right-click any node in the tree to copy its key or value (unescaped).
Locate in File
Right-click any node in the tree and choose Locate in File to jump to that node in the JSON source editor.
Keyboard Shortcuts
| Shortcut | Description |
|---|---|
Ctrl+Shift+J (Cmd+Shift+J on macOS) | Open JSON Tree View (when editing a JSON file) |
Configuration
| Setting | Default | Description |
|---|---|---|
tlcsdm.jsonTreeView.autoRefresh | true | Automatically refresh the tree view when the JSON file is saved |
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Lint
npm run lint
# Package extension
npm run package
License
Contributing
Contributions are welcome! Please open an issue or submit a pull request.