JSON Patch generator and applier

Generate RFC 6902 patches or safely apply a local patch to JSON.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.
Open a second UTF-8 text file5 MiB maximum. The file opens in the second text box.Or drop a file here.

Options

Options

How to use this tool

  1. Choose generate to compare original and revised documents.
  2. Choose apply to use an RFC 6902 patch as the second input.
  3. The patch is applied to a new document; failed operations stop without returning a partial result.

Things to know

  • Supported operations are add, remove, replace, move, copy and test. Prototype-modifying paths are rejected.
  • Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
  • Structured documents accept up to 128 nesting levels and 250,000 values; query and schema modes have additional limits.
  • At most 10,000 operations or generated changes, 250,000 resulting values and 1,000,000 visited values per apply operation are accepted.

You might also need

More in data & csv