Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON Formatter and ComparisonNew to Visual Studio Code? Get it now.
JSON Formatter and Comparison

JSON Formatter and Comparison

Rithik Srivastava

|
13 installs
| (0) | Free
Simple JSON formatter and comparison tool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Formatter & Comparison Tool

A powerful and elegant JSON formatter and comparison tool for Visual Studio Code with intuitive sidebar integration.

✨ Features

🔧 JSON Formatting

  • 📋 Sidebar Integration: Easy access through a dedicated activity bar icon
  • 🎯 One-Click Formatting: Format and beautify JSON with a single click
  • 🎨 Monaco Editor: Rich editing experience with syntax highlighting and dark theme
  • 🔍 Error Handling: Clear, helpful error messages for invalid JSON syntax
  • ⚡ Fast & Lightweight: Quick formatting without slowing down your workflow

🔄 JSON Comparison

  • 📊 Side-by-Side Comparison: Compare two JSON files with inline highlighting
  • 🟢 Visual Differences: Green highlighting for additions, red for removals
  • 📈 Statistics: Real-time count of changes, additions, and removals
  • 🎯 Manual Control: Compare only when you click the button - no auto-comparison
  • 🔍 Enhanced Scrolling: Smooth scrolling with line indicators and visual feedback

🎪 User Experience

  • 🎨 Clean Interface: Minimalist design that stays out of your way
  • 🌙 Dark Theme: Matches VS Code's native dark theme perfectly
  • 📱 Responsive Design: Works well at different window sizes
  • ⌨️ Professional UX: Follows VS Code extension best practices

🚀 Usage

Quick Start

  1. Find the Icon: Look for the JSON Tools icon (📐) in the left activity bar
  2. Open Panel: Click the icon to reveal the JSON Tools panel
  3. Choose Your Tool:
    • "Open JSON Formatter" - Format and beautify JSON
    • "Compare JSON" - Compare two JSON files side-by-side

JSON Formatting

  1. Click "Open JSON Formatter" from the sidebar
  2. Paste or type your JSON code in the editor
  3. Click "Format" to beautify your JSON
  4. Use "Clear" to reset the editor

JSON Comparison

  1. Click "Compare JSON" from the sidebar
  2. Paste your first JSON in the "Source JSON" field
  3. Paste your second JSON in the "Target JSON" field
  4. Click "Compare" to see differences highlighted inline
  5. View statistics showing additions, removals, and modifications

📸 Screenshots

Sidebar Integration

The extension adds a convenient JSON icon to your activity bar with two powerful tools:

  • 📐 Open JSON Formatter - Format and beautify JSON
  • 🔄 Compare JSON - Side-by-side JSON comparison

JSON Formatter Interface

Clean, dark-themed interface with Monaco editor for the best JSON editing experience.

JSON Comparison Tool

Professional comparison interface with:

  • Side-by-side input fields
  • Inline highlighting (green for additions, red for removals)
  • Real-time statistics
  • Enhanced scrolling with line indicators

📋 Requirements

  • Visual Studio Code: Version 1.102.0 or higher
  • No additional dependencies: Works out of the box

🔧 Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions view (Ctrl+Shift+X)
  3. Search for "Simple JSON Formatter"
  4. Click "Install"

From Command Line

ext install RithikSrivastava.easy-json-formatter

Manual Installation

  1. Download the .vsix file from the releases page
  2. Open VS Code
  3. Run Extensions: Install from VSIX... from the Command Palette
  4. Select the downloaded file

🎯 Why Choose This JSON Tool?

🚀 All-in-One Solution

  • Formatting AND Comparison in one extension
  • No Command Palette Required: Unlike other tools, no need to remember shortcuts
  • Always Accessible: Permanent icon in the sidebar means tools are always one click away

🎨 Professional Experience

  • VS Code Native Feel: Matches VS Code's design patterns perfectly
  • Intuitive Interface: Clear, logical workflow for both formatting and comparison
  • Enhanced UX: Smooth animations, visual feedback, and professional polish

⚡ Performance & Reliability

  • Manual Control: Compare only when you want to - no resource-heavy auto-comparison
  • Error Handling: Graceful handling of invalid JSON with clear error messages
  • Lightweight: Fast performance that doesn't slow down your workflow

🔍 Comparison Features in Detail

Visual Highlighting

  • 🟢 Green Background: Added lines or content
  • 🔴 Red Background: Removed lines or content
  • 📊 Real-time Stats: Live count of changes as you compare

Enhanced Scrolling

  • Smooth Scrolling: Professional scroll behavior with momentum
  • Line Indicators: Shows current line position while scrolling
  • Synchronized Overlays: Highlighting stays perfectly aligned with content
  • Custom Scrollbars: Beautiful, styled scrollbars with hover effects

Smart Comparison

  • JSON Auto-formatting: Automatically formats JSON before comparison
  • Text Fallback: Also works with plain text, not just JSON
  • Manual Trigger: Only compares when you click "Compare" - no surprises

🐛 Known Issues

Currently no known issues. If you encounter any problems, please report them here.

📝 Release Notes

1.1.0 - Comparison Tool Added

  • ✅ Added JSON comparison functionality
  • ✅ Side-by-side comparison with inline highlighting
  • ✅ Enhanced scrolling with visual indicators
  • ✅ Real-time statistics for differences
  • ✅ Manual comparison control (no auto-compare)
  • ✅ Improved sidebar with two distinct tools

1.0.0 - Initial Release

  • ✅ Sidebar integration with activity bar icon
  • ✅ Tree view panel with format button
  • ✅ Monaco editor with JSON syntax highlighting
  • ✅ Dark theme interface matching VS Code
  • ✅ Format and Clear functionality
  • ✅ Error handling for invalid JSON

🛠️ Available Tools

Tool Description Key Features
JSON Formatter Format and beautify JSON • Monaco editor
• Syntax highlighting
• Error handling
• One-click formatting
JSON Comparison Compare two JSON files • Side-by-side view
• Inline highlighting
• Statistics display
• Enhanced scrolling

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built with the VS Code Extension API
  • Uses Monaco Editor for rich text editing experience
  • Inspired by the need for quick, accessible JSON formatting and comparison
  • Special thanks to the VS Code community for feedback and suggestions

📞 Support

  • Issues: GitHub Issues
  • Repository: GitHub Repository
  • Marketplace: VS Code Marketplace

🎯 Roadmap

  • [ ] Keyboard shortcuts for quick access
  • [ ] Export comparison results
  • [ ] JSON schema validation
  • [ ] Minify JSON option
  • [ ] Custom color themes for comparison

Enjoy formatting and comparing your JSON with ease! 🎉

If you find this extension helpful, please consider:

  • ⭐ Giving it a star on GitHub
  • 📝 Leaving a review on the VS Code Marketplace
  • 🚀 Sharing it with your developer friends

Making JSON work easier, one format and comparison at a time.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft