Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>json-parse-recursivelyNew to Visual Studio Code? Get it now.
json-parse-recursively

json-parse-recursively

xiang

|
76 installs
| (0) | Free
parse JSON string recursively
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Convert JSON to JavaScript Object, recursively! e.g.

{
    "key": "value",
    "key2": "{ \"innerKey\": \"value\" }"
}

The above is a valid JSON object. However, the value of key2 is a JSON string. This extension will convert the above to the below:

{
    "key": "value",
    "key2": {
        "innerKey": "value"
    }
}

parse selected text

now you can parse selected text.

The extension does this recursively, regardless the depth of your JSON string.

How to use

  1. Install the extension
  2. Focus on your document
  3. Paste your JSON string in the document
  4. Issue JSON: parse recursevely command, it will select all text in the document and convert it to JavaScript object
  • On Mac, the issue command instructions are: command + shift + p, JSON: parse recursevely

  • On Windows, the issue command instructions are: ctrl + shift + p, JSON: parse recursevely

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