JSON Patch Builder
Generate an RFC 6902 JSON Patch of add, remove and replace operations that turns a source JSON document into a target document.
JSON Patch Builder
Output
Working…Updated . Provided as is. Check the output before you rely on it in production.
How to use JSON Patch Builder
- 1
Paste the source JSON
Paste the JSON document as it is now, before the change.
- 2
Paste the target JSON
Paste the document as it should become.
- 3
Generate the patch
You get an RFC 6902 array of add, remove and replace operations that turns the source into the target.
- 4
Apply it
Send the patch with an HTTP PATCH request (Content-Type: application/json-patch+json) or apply it with a JSON Patch library.
Questions and answers
What is JSON Patch?
Is the order of operations important?
Use it as an API
JSON Patch Builder is also callable as a free HTTP JSON API at
https://aidevhub.io/api/json-patch-builder/ — GET with query
parameters or POST with a JSON body, no authentication, CORS enabled, fair use
(abusive traffic is throttled at the edge; there is no per-request quota header). Responses return
{ ok, tool, result, meta }.
curl -s -X POST https://aidevhub.io/api/json-patch-builder/ \
-H "Content-Type: application/json" \
-d '{"source":"{\"name\":\"Alice\",\"role\":\"dev\"}","target":"{\"name\":\"Alice\",\"role\":\"lead\"}"}' Machine-readable contract: /api/tool/json-patch-builder.json All API endpoints: /agents/ LLM site index: /llms.txt
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/json-patch-builder/ OpenAPI: https://aidevhub.io/api/openapi.yaml
Unified Runtime API
https://aidevhub.io/api/tools/run/?toolId=json-patch-builder&a=%7B%0A%20%20%22name%22%3A%20%22Alice%22%2C%0A%20%20%22role%22%3A%20%22dev%22%2C%0A%20%20%22tags%22%3A%20%5B%0A%20%20%20%20%22a%22%0A%20%20
GET and POST are supported at /api/tools/run/ with identical validation and limits.
Limit: 30 req / 60s, input max 256 KB.