Docs/Editing in tree mode
JSON tree editor: edit row by row
In tree mode you change the document row by row: edit a value, rename a key, insert, duplicate, move or remove. Every change is one step in Undo.
Change a row
- Click a row, or move to it with ↑ and ↓. The selected row shows a Row actions button at its end.
- Press Enter to edit its value in place. Enter saves, Escape cancels.
- Press F2 to rename its key, Ctrl+Insert to add a row after it, Ctrl+D to copy it, or Ctrl+Delete to delete it.
- Move it with Alt+Shift+↑ and Alt+Shift+↓. The row keeps its selection and shows where it went, for example “↑ Moved up · 2 of 5”.
Keys
Edit JSON in the tree: an example
Take a user record where every value came in as text: {"name":"Ada","role":"admin","active":"yes","id":"42"}. Open it in tree mode and fix it row by row.
Select active, press Enter to edit it, type true and save: it becomes the JSON value true, not the text "true". Do the same on id with 42 to make it a number. On role, type ["admin","editor"] and it becomes an array with two items. To keep a number as text, type it in quotes, for example "42".
Select name and press F2 to rename the key to fullName. The document is now {"fullName":"Ada","role":["admin","editor"],"active":true,"id":42}.
Press Ctrl+D on fullName and the copy is added under it as "fullName (copy)":"Ada"; Ctrl+Delete deletes it again. That was six changes, and Ctrl+Z takes them back one at a time.
What a value becomes
When you type a value, 42, true, false and null are kept as JSON values. Text that starts with { or [ must be valid JSON and becomes an object or array. Anything else is saved as text.
If a value starts like JSON but does not parse, the field is marked and a message says what is missing. Fix it, or press Escape to keep the old value.
Renaming and inserting
A key can’t be empty or the same as another key in that object; the field says so and waits. When a document already has the same key twice, the earlier copy is marked “duplicate key, not used”, because the last one wins.
Insert adds a row after the selected one. In an object you type the key and then the value (Tab moves between them); in an array you type only the value.
Opening and closing
→ opens a row and ← closes it (or moves to its parent). Ctrl+E toggles the selected row. Ctrl+Shift+E opens everything, up to 200,000 rows, and Ctrl+Alt+E closes everything. The Expand all and Collapse all buttons sit side by side in each panel’s toolbar and do the same. In text mode they unfold and fold every code region instead. Compact works in every mode. Only objects and arrays have an arrow; strings, numbers, true, false and null never do.
Removing a row shows a toast with Undo, so a slip costs one click.