A VS Code extension for JSON file visualization. Provides a visual tree view for browsing, searching, and querying JSON files using JSONata.
- 🌳 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
See the extension in action:
Search for tlcsdm-json-tree-view in the VS Code Extensions panel.
- Download the
.vsixfile from the Releases page - In VS Code, go to Extensions → ··· → Install from VSIX
Download from Jenkins
- 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
Use the search bar at the bottom of the tree view to find content. Navigate between matches with the ↑/↓ buttons or Enter/Shift+Enter.
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.
Right-click any node in the tree to copy its key or value (unescaped).
Right-click any node in the tree and choose Locate in File to jump to that node in the JSON source editor.
| Shortcut | Description |
|---|---|
Ctrl+Shift+J (Cmd+Shift+J on macOS) |
Open JSON Tree View (when editing a JSON file) |
| Setting | Default | Description |
|---|---|---|
tlcsdm.jsonTreeView.autoRefresh |
true |
Automatically refresh the tree view when the JSON file is saved |
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Lint
npm run lint
# Package extension
npm run packageContributions are welcome! Please open an issue or submit a pull request.
