A Visual Studio Code extension that provides an interactive tree view for JSON data. This extension allows you to visualize JSON files in a collapsible tree structure, making it easier to navigate and understand complex JSON data.
- 🌳 Interactive Tree View: View JSON data in a collapsible tree structure
- 🎨 Syntax Highlighting: Color-coded JSON elements (strings, numbers, booleans, null values)
- 📁 Expandable Nodes: Click to expand/collapse objects and arrays
- 🔍 Context Menu Integration: Right-click on JSON files or JSON content to open tree viewer
- ⚡ Fast Rendering: Efficient tree generation for large JSON files
- 🎯 VSCode Theme Integration: Automatically adapts to your VSCode theme
- Right-click on any
.json
file in the file explorer - Select "Open JSON Tree Viewer" from the context menu
- Open a JSON file in the editor
- Right-click in the editor
- Select "Open JSON Tree Viewer" from the context menu
- Open a JSON file or select JSON content
- Press
Ctrl+Shift+P
(orCmd+Shift+P
on Mac) to open the command palette - Type "Open JSON Tree Viewer" and press Enter
- Download the
.vsix
file - Open VSCode
- Go to Extensions view (
Ctrl+Shift+X
) - Click on the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsix
file
- Clone this repository
- Run
npm install
to install dependencies - Press
F5
to open a new Extension Development Host window - Test the extension with JSON files
- Visual Studio Code 1.74.0 or higher
- Valid JSON content
This extension contributes the following commands:
jsonTreeViewer.openViewer
: Open JSON Tree Viewer
- Large JSON files (>1MB) may take a moment to render
- Very deeply nested structures may cause performance issues
Initial release of JSON Tree Viewer:
- Basic tree view functionality
- Context menu integration
- Syntax highlighting
- Expandable/collapsible nodes
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy exploring your JSON data! 🎉