Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>JSON ProcessorNew to Visual Studio Code? Get it now.
JSON Processor

JSON Processor

bleuren

|
31 installs
| (0) | Free
A VS Code extension for processing JSON keys.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Processor

A Visual Studio Code extension that provides tools for processing JSON files by deduplicating or sorting JSON keys.

Features

This extension provides two main features:

  1. Deduplicate JSON Keys: Removes duplicate keys from JSON objects while preserving the first occurrence of each key.
  2. Sort JSON Keys: Sorts all keys in JSON objects alphabetically.

Both operations:

  • Work recursively on nested objects
  • Preserve the original values
  • Maintain proper JSON formatting
  • Handle arrays properly
  • Provide immediate feedback

Installation

  1. Open Visual Studio Code
  2. Press Ctrl+P (Windows/Linux) or Cmd+P (macOS)
  3. Type ext install json-processor
  4. Press Enter

Usage

  1. Open a JSON file in VS Code
  2. Right-click in the editor
  3. Choose either:
    • "Deduplicate JSON Keys" to remove duplicate keys
    • "Sort JSON Keys" to sort keys alphabetically

Example:

Original JSON:

{
    "b": 1,
    "a": 2,
    "b": 3,
    "c": {
        "y": 1,
        "x": 2,
        "y": 3
    }
}

After deduplication:

{
    "b": 1,
    "a": 2,
    "c": {
        "y": 1,
        "x": 2
    }
}

After sorting:

{
    "a": 2,
    "b": 1,
    "c": {
        "x": 2,
        "y": 1
    }
}

Requirements

  • Visual Studio Code version 1.80.0 or higher

Extension Settings

This extension does not add any VS Code settings.

License

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

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