A quick way to test JSONata expressions against JSON data in VS Code. Write queries on the left, see results on the right.
How it works
- Three-panel editor: JSON input (left), JSONata expression (middle), output (right)
- Live evaluation: Updates as you type
- Load/save files: Open
.jsonor.jsonatafiles, save results - Theme adaptive: Automatically matches your VS Code theme (Monokai, Dracula, One Dark Pro, etc.)
Quick start
- Open the Command Palette (Ctrl+Shift+P)
- Run "Open JSONata Playground"
- Paste your JSON on the left
- Write a query in the middle
- View results instantly on the right
Example
JSON Input:
{
"name": "John",
"age": 30,
"email": "[email protected]"
}
JSONata Expression:
$[name, age]
Output:
[
"John",
30
]
Panel Controls
| Button | Function |
|---|---|
| 📂 (Open) | Load a file into the editor |
| 💾 (Save) | Save current editor content to a file |
Available for:
- JSON Panel: Load/save
.jsonfiles - JSONata Panel: Load/save
.jsonataor.txtfiles - Output Panel: Save results as
.jsonor.txt
Requirements
- VS Code 1.110.0 or higher