JSON Diff Viewer
Compare and analyze two JSON documents directly inside Visual Studio Code.

JSON Diff Viewer provides a fast, intuitive interface for examining differences between JSON files or objects. Designed for developers who need to track changes, review configurations, or validate API responses, the extension offers a rich, side‑by‑side diff experience with filtering and statistics.
🌟 Key Features
- Side‑by‑side comparison with syntax‑highlighted JSON for quick visual inspection.
- Change highlighting (🟢 added, 🔴 removed, 🟡 modified) to identify updates at a glance.
- Summary panel showing the number of additions, deletions, and modifications.
- Filtering and search — narrow results by type of change or by JSON path using dot notation.
- Deeply nested support with full path resolution for complex objects.
- Works seamlessly with large files and formatted/pretty‑printed JSON.
Screenshots

🔧 Usage
Compare Any Two JSON Files
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P).
- Execute "JSON Diff: Compare Two JSON Files".
- Select the first file, then the second; the comparison panel loads instantly.
Compare the Active File with Another
- Open a
.json file in the editor.
- Right‑click anywhere in the editor and choose "JSON Diff: Compare Active File with Another".
- Select the second file to open the diff view.
Tip: You can also run commands via the Quick Open (Cmd+P) by prefixing with >.
📦 Installation
From the Visual Studio Marketplace
Search for "JSON Diff Viewer" in the Extensions view (⇧⌘X / Ctrl+Shift+X) and click Install.
From Source
# clone the repo
npm install # install dependencies
npx vsce package # build .vsix package
code --install-extension json-diff-viewer-*.vsix
Requirements
- Visual Studio Code v1.74 or newer
- Node.js (only required if you are building from source)
Note: The extension is written in plain JavaScript and does not require additional runtime dependencies.
⚙️ Configuration
The extension currently does not expose any user settings. Future releases may include options for customizing diff colors, behavior, and keyboard shortcuts.
❓ Troubleshooting
🙋 Support & Contributions
Have feedback or want to contribute? Open an issue or submit a pull request on the project repo. Contributions are welcome:
- Fork the repository
- Create a feature branch
- Submit a pull request with tests and an updated README
License
This extension is licensed under the MIT License.