JSON Recursive Expander
Recursively expand nested JSON/Python dict strings into proper JSON objects.
Features
- 🔄 Recursive Expansion: Automatically expands nested JSON strings at any depth
- 🐍 Python Dict Support: Handles Python dict format with single quotes
- ⚡ Multiple Commands: Expand file, selection, or clipboard
- ⚙️ Configurable: Customize parsing behavior and output format
Usage
Commands
| Command |
Shortcut |
Description |
Expand JSON Recursively |
Ctrl+Alt+J |
Expand entire file |
Expand Selected JSON |
Ctrl+Alt+Shift+J |
Expand selection |
Expand JSON to New File |
- |
Open result in new tab |
Expand JSON from Clipboard |
- |
Expand clipboard content |
Example
Before:
{
"key": "value",
"nested": "{\"inner\": \"data\"}"
}
After:
{
"key": "value",
"nested": {
"inner": "data"
}
}
Extension Settings
| Setting |
Default |
Description |
parseJson |
true |
Parse standard JSON strings |
parsePythonDict |
true |
Parse Python dict strings |
maxDepth |
100 |
Maximum recursion depth |
expandArrays |
true |
Expand strings in arrays |
indentSize |
2 |
Output indentation |
License
MIT
| |