VS Code Extensions
Selection to JSON Exporter

Selection to JSON Exporter

by MTG9ing

Instantly convert raw, messy, unquoted key-value selections into clean, formatted JSON objects with a single click.

Downloads

3

Rating

5.0 / 5 (1)

Version

0.0.1

Last updated

May 26, 2026

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.

Related extensions