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

JSON Selection Converter

Xuyilong

|
2 installs
| (0) | Free
Decode and encode selected JSON text from the editor context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Selection Converter

Convert selected text directly in the VS Code editor.

Commands

  • Decode JSON String parses a JSON value. If the result is another JSON string, it decodes that inner value too. For example, select "{\"item\":1}" to get {"item":1}.
  • Encode as JSON String turns selected JSON or plain text into an escaped JSON string literal. For example, select {"item":1} to get "{\"item\":1}".

Select text and use the editor context menu or Command Palette. Invalid JSON is left unchanged.

中文说明

在编辑器中选中文本后,可以通过右键菜单或命令面板解码 JSON 字符串、将 JSON 或普通文本编码为 JSON 字符串。当前扩展代码与图标由 Xuyilong 独立实现和绘制。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft