Editing
OK JSON is a viewer first, but the Editor pane is a real editor: you can change the selected node’s content and merge the change back into the document — or back into the file it came from.
Edit a Node
Select a node in the Navigator and edit its JSON in the Editor pane on the right. While there are unsaved edits, the window’s subtitle shows Edited, and OK JSON asks for confirmation before you switch to another node, so you can’t lose changes by mis-clicking.
Save Changes
Press ⇧ ⌘ S or click Save Changes to merge your edit into the document. The Navigator updates in place — expansion state and selection are preserved.
Save Changes to File
If the document was opened from a file, press ⌘ S or click Save Changes to File to write the updated document back to that file.
For documents that didn’t come from a file — pasted strings, URL responses — use File → Save As… to save them anywhere you like.
Format Document
Select Format Document in the main menu to re-format the Editor’s content with your current tab size settings.
Rename the Root Node
The root node in the Navigator is named $ by default. Click its label and type to rename it — useful when you’re comparing several viewers side by side. The name is also used by the Path Bar and copied paths.