Edit, Compare, and Transform JSON
This guide walks through the editor the way many people actually use it:
- Start with a small JSON document
- Make a few edits
- Compare changes side by side
- Run a utility or pipeline transform
- Learn the fastest ways to work
If you want one practical page before diving into the rest of the docs, start here.
Mac users: replace Ctrl with Cmd in shortcut examples.
Start with a small JSON document
Open an existing document or paste a small JSON object into the editor, such as:
{
"name": "Ada",
"role": "developer",
"active": true,
"tags": ["json", "tools"]
}Small JSON is the best way to learn the editor because you can immediately see what changes when you edit, compare, and transform.
Learn the two core editing modes
The editor is built around two main views:
Tree View
Use Tree View when you want to work with the JSON structure directly.
- Expand and collapse objects and arrays
- Edit keys and values in place
- Add, duplicate, move, or delete nodes
- Use fast tree navigation and vim-style chords
Tree View is best for structured edits and review.
Text View
Use Text View when you want to work with the raw JSON text.
- Type directly into the document
- Reformat messy JSON
- Search and replace text patterns
- Make larger free-form edits quickly
Text View is best for raw editing, formatting, and quick text-based fixes.
Switch between views
- Use the panel toolbar buttons to switch between TREE and TEXT
- Panel shortcuts:
| Shortcut | Action |
|---|---|
| Ctrl+Q | Switch to Tree View |
| Ctrl+W | Switch to Text View |
If you are already working in Tree View with vim-style keybindings, you can also use tree-only view commands such as v t, v r, Ctrl+1, and Ctrl+2. See Vim Mode.
Know the main editor surfaces
Before you compare or transform anything, it helps to know what each part of the editor is for.
Main toolbar
The main toolbar affects the workspace across panels.
Common actions include:
- Create a New Document
- Toggle Sync Scroll
- Toggle Diff
- Open Versions
- Open Files
- Open Settings
See Main Toolbar.
Panel toolbar
Each panel has its own working tools.
Common actions include:
- Switch between Tree and Text view
- Import JSON from file, URL, or CSV
- Format JSON
- Copy or save in different formats
- Find and replace
- Filter
- Open the Command Palette
- Open Macro Shortcuts
- Undo and redo
- Expand or collapse the whole tree
Status bar
The status bar helps you understand what is happening right now.
It can show:
- Current version, including older-version or newer-version awareness
- Cursor position and selection count
- Save state such as Saving… or Saved
- Syncing… when remote updates are in progress
- Offline draft when you are working offline
- Macro status
- Tree mode status
- File size and line count
See Status Bar.
Make a few basic edits
Try a simple round of editing first:
- Change a value such as
"role": "developer"to"role": "staff engineer" - Add a new field such as
"team": "platform" - Undo with Ctrl+Z
- Redo with Ctrl+Y or Ctrl+Shift+Z
If you are in Text View, you can also:
- Open Find & Replace with Ctrl+F
- Pretty-print JSON with Ctrl+Shift+F
- Compact JSON with Ctrl+Shift+M
The status bar will show when the editor is saving or has already saved your work.
Compare changes side by side
Once you have a small edit, the next useful step is comparison.
Basic compare workflow
- Open a second panel
- Load another version or another document into the other panel
- Turn on Diff from the main toolbar
- Optionally turn on Sync Scroll to keep both sides aligned
This is useful when you want to:
- Review edits before replacing data
- Compare two versions of the same document
- Compare an original document with transformed output
What to expect
- Added content is highlighted in green
- Removed content is highlighted in red
- Diff updates as content changes
See Diff & Compare and Panel Modes.
Start with AI Draft
If you already know the outcome you want, you can begin with Generate With AI instead of manually choosing each transform.
AI Draft lets you:
- describe the result in plain language
- review the generated pipeline draft and explanation
- run the draft on your current JSON
- inspect the output before clicking APPLY
If the result is close but not final, use Open as New Pipeline and keep refining it in the pipeline builder.
See AI Draft.
Run a utility for a one-off transform
Utilities are the quickest way to transform the current JSON without leaving the editor.
Open a utility
- Press Ctrl+K to open the Command Palette
- Search for a utility by name, such as
clean,csv,flatten, orfind-replace - Select the utility
The utility runner opens in a three-panel modal:
- Input shows the current JSON
- Configuration holds the utility settings
- Output shows the transformed result after you run it
Run and apply
- Configure the utility
- Click RUN
- Review the output
- Click APPLY if you want to replace the current panel content
Utility settings are remembered, so repeated one-off transforms stay fast.
See Run Utility.
Run a pipeline for repeatable transforms
Use a pipeline when one utility is not enough.
Pipelines are best when you need:
- Multiple transformation steps in sequence
- A repeatable workflow you will run again later
- Shared or named transformation logic
Open a pipeline
- Press Ctrl+K to open the Command Palette
- Search for a saved pipeline
- Select it to open the pipeline runner
The pipeline runner shows:
- Inputs on the left
- A Pipeline step summary in the middle
- The final Output on the right
Run the pipeline, review the result, then click APPLY to use it in the active panel.
See Run Pipeline.
Feature map
Use this as a quick “what is this tool for?” reference.
| Feature | Best for | Learn more |
|---|---|---|
| Shortcut keys | Fast everyday editing and navigation | Keyboard Shortcuts |
| Command Palette | Finding actions, utilities, and pipelines quickly | Command Palette |
| Utility runner | One-off JSON transforms | Run Utility |
| Pipeline runner | Repeatable multi-step transforms | Run Pipeline |
| Macro shortcuts | Repeating tree actions with assigned slots | Macros |
| Vim keybindings | Fast tree navigation and editing | Vim Mode |
| Compare / diff | Reviewing changes side by side | Diff & Compare |
| Status bar | Reading save, sync, version, and macro state | Status Bar |
| Main toolbar | Workspace-wide compare and document controls | Main Toolbar |
When to use what
Use Tree View when
- You want to edit JSON structurally
- You want to move through nested objects and arrays
- You want to use macros or vim-style tree shortcuts
Use Text View when
- You want to edit raw JSON directly
- You want to format or compact the document
- You want text-based find and replace
Use compare when
- You want to review edits safely
- You want to compare versions or documents before replacing content
- You want to inspect original versus transformed output
Use utilities when
- You need one transformation right now
- You want to test a change before applying it
- You do not need a saved multi-step workflow
Use pipelines when
- You need several steps in sequence
- You want to reuse the same transformation later
- You want the transformation logic to stay consistent
Use macros and vim-style controls when
- You spend a lot of time in Tree View
- You repeat the same structural edits
- You want high-speed keyboard-driven workflows
Shortcut reference
These shortcuts are especially useful in the workflow above.
General editor shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+Shift+Z | Redo (alias) |
| Ctrl+F | Open Find & Replace |
| Ctrl+K | Open Command Palette |
| Ctrl+Shift+F | Pretty-print JSON |
| Ctrl+Shift+M | Compact JSON |
| Ctrl+Q | Switch to Tree View |
| Ctrl+W | Switch to Text View |
| Ctrl+S | Download current output |
Tree / Vim-only shortcuts
| Shortcut | Action |
|---|---|
| j / k | Move down or up |
| g g | Go to top |
| Shift+G | Go to bottom |
| l / h | Expand, collapse, or go to parent |
| e v | Edit value |
| e k | Edit key |
| a / Shift+A | Add sibling or child |
| o / Shift+O | Insert below or above |
| w h / w l | Move to left or right panel |
| w f | Toggle fullscreen |
Macro shortcuts
| Shortcut | Action |
|---|---|
| m m | Open Macro Shortcuts |
| 0-9 | Activate macro slot |
| Shift+Enter | Execute macro |
| Alt+Shift+Enter | Edit macro config |
| > | Chain macros |
| . | Repeat last macro |
| Escape | Clear chain |
Tool entry points
| Tool | How to open |
|---|---|
| Command Palette | Ctrl+K |
| Utility runner | Open Command Palette, then choose a utility |
| Pipeline runner | Open Command Palette, then choose a pipeline |
| Macro Shortcuts | Toolbar action or m m in Tree View |