Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON to PowerShellNew to Visual Studio Code? Get it now.
JSON to PowerShell

JSON to PowerShell

rvdwegen

|
39 installs
| (1) | Free
Convert JSON to PowerShell objects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-json-to-powershell

A Visual Studio Code extension that converts JSON to PowerShell objects.

Vibes

Please note that this extension is entirely vibe coded down to AI generating the project files and running the command to build it.
As such the project is released under the "Unlicense" which places the project in the public domain free of any and all restrictions or responsibility.

Features

  • Convert JSON to PowerShell objects with proper formatting
  • Preserve nested structures and arrays
  • Handle special characters and escape sequences
  • Keyboard shortcut support (Ctrl+Shift+J / Cmd+Shift+J)

Usage

  1. Select the JSON text you want to convert
  2. Use one of the following methods to convert:
    • Press Ctrl+Shift+J (Windows/Linux) or Cmd+Shift+J (Mac)
    • Use the Command Palette (Ctrl+Shift+P) and type "Convert JSON to PowerShell"

Example

Input JSON:

{
    "name": "John Doe",
    "age": 30,
    "isActive": true,
    "address": {
        "street": "123 Main St",
        "city": "New York"
    },
    "tags": ["user", "admin"]
}

Output PowerShell:

@{
    name = 'John Doe';
    age = 30;
    isActive = true;
    address = @{
        street = '123 Main St';
        city = 'New York'
    };
    tags = @(
        'user',
        'admin'
    )
}

Requirements

  • Visual Studio Code 1.85.0 or higher

Extension Settings

This extension contributes the following settings:

  • json-to-powershell.convert: Command to convert JSON to PowerShell

Known Issues

None at the moment.

Release Notes

0.0.1

Initial release of JSON to PowerShell converter.

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