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:

JSON Tree Viewer extension screenshot

Installation

From VS Code Marketplace

Search for tlcsdm-json-tree-view in the VS Code Extensions panel.

From VSIX File

  1. Download the .vsix file from the Releases page
  2. In VS Code, go to Extensions โ†’ ยทยทยท โ†’ Install from VSIX

From Jenkins

Download from Jenkins

Usage

Open JSON Tree View

  1. Open a JSON, JSONC, or JSON5 file in VS Code
  2. Click the tree icon in the editor title bar, or:
    • Use keyboard shortcut Ctrl+Shift+J (Cmd+Shift+J on 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 View from the Command Palette

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

ShortcutDescription
Ctrl+Shift+J (Cmd+Shift+J on macOS)Open JSON Tree View (when editing a JSON file)

Configuration

SettingDefaultDescription
tlcsdm.jsonTreeView.autoRefreshtrueAutomatically 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

MIT

Contributing

Contributions are welcome! Please open an issue or submit a pull request.