JSONata Playground
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
.json or .jsonata files, 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": "john@example.com"
}
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
.json files
- JSONata Panel: Load/save
.jsonata or .txt files
- Output Panel: Save results as
.json or .txt
Requirements
- VS Code 1.110.0 or higher
Learn more
| |