Skip to Content
JSON Patch

JSON Patch

JSON Patch (RFC 6902)  is a format for describing the differences between two JSON documents as a sequence of operations. OK JSON can compare two documents and generate the patch for you — a quick way to answer “what changed between these two payloads?”

Open the JSON Patch Window

There are three ways in:

  • Right-click an object or array node in the Navigator and select Compare with JSON Patch. The node’s content prefills the first text view.
  • Select FileNew JSON Patch Window in the main menu for an empty comparison window.
  • Select Open New JSON Patch Window from the menu bar icon.

Compare Two Documents

The window has three panes:

  1. The first text view holds the original document.
  2. The second text view holds the changed document.
  3. The result pane shows the JSON Patch that transforms the first into the second.

The patch updates automatically as you edit either side. If the two documents are equal, OK JSON tells you they represent the same JSON object. You can format either text view with Format Document while it has focus.