Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Selection to JSON ExporterNew to Visual Studio Code? Get it now.
Selection to JSON Exporter

Selection to JSON Exporter

Mohammed Ghazy

|
1 install
| (1) | Free
Instantly convert raw, messy, unquoted key-value selections into clean, formatted JSON objects with a single click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Selection to JSON Exporter 🚀

Visual Studio Marketplace Version License: MIT Extension Size

Tired of manually quoting keys, wrapping string values, and formatting messy copy-pasted logs into valid JSON structures?

Selection to JSON Exporter instantly cleans up raw, unquoted text strings directly inside your active workspace with a single right-click context menu command.


🔥 Key Features

  • Zero-Config Formatting: Transform name: Mohammed, role: engineer into valid structured JSON automatically.
  • Smart Value Wrapping: Automatically detects and wraps raw strings while correctly leaving booleans (true/false) and numerical values unquoted.
  • Auto-Indentation: Outputs beautifully structured, human-readable JSON using standard 2-space line spacing.
  • Lightweight Performance: Bundled using esbuild for an ultra-fast runtime footprint under 2 KB.

🕹️ How to Use It

  1. Highlight any raw, comma-separated key-value sequence or messy text structure in your file.
  2. Right-click the selected highlight block.
  3. Select Export Selection to JSON from the context menu dropdown.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft