JSON Patch and Pointer Tool
Create an RFC 6902 JSON Patch that turns one JSON document into another, apply a patch to a document, and test RFC 6901 JSON Pointer paths with the value they point to.
- Free
- No sign-up
- Works on any device
About JSON Patch and Pointer Tool
JSON Patch, defined in RFC 6902, describes a change to a JSON document as a list of add, remove, replace, move, copy and test operations, each aimed at a JSON Pointer path from RFC 6901 such as /tags/2. This tool compares two documents and writes the patch, then proves it by applying the patch to the original and checking that the new document comes out. It can also apply a patch you paste, with a clear message naming the failing step, and resolve any pointer with its type, segments and dot-notation form.
How to use JSON Patch and Pointer Tool
- Choose to create a patch, apply a patch or test a pointer, then paste the original JSON.
- Paste the new JSON, the patch operations or the pointer, depending on your choice.
- Copy or download the patch or patched document and check the verification line.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
How are arrays compared when the patch is created?
Items are compared position by position, so inserting at the start shows as changes to the following items. The patch is valid and verified, though not always the shortest possible.
How do I write a key that contains a slash or tilde in a pointer?
Write the slash as ~1 and the tilde as ~0. A key named a/b becomes the pointer segment a~1b, and the tool shows the unescaped segments so you can check it.
What happens if one operation in a patch fails?
Operations run in order on a copy of the document, so nothing is changed if a step fails. The message names the failing operation number, its type and its path.
Is JSON Patch and Pointer Tool free?
Yes. JSON Patch and Pointer Tool on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.