JSON diff

Paste the original JSON and a revised version. Copy the JSON Patch that turns the first document into the second.

Input

No key required

Result

Example

[
  {
    "op": "replace",
    "path": "/lives",
    "value": 8
  },
  {
    "op": "add",
    "path": "/naps/1",
    "value": "noon"
  },
  {
    "op": "remove",
    "path": "/owner/phone"
  }
]
Full response
{
  "identical": false,
  "minimal": true,
  "patch": [
    {
      "op": "replace",
      "path": "/lives",
      "value": 8
    },
    {
      "op": "add",
      "path": "/naps/1",
      "value": "noon"
    },
    {
      "op": "remove",
      "path": "/owner/phone"
    }
  ]
}

Run with curl

Copy this command to run the request in your terminal. It updates as you edit the input.

For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".

POST /v1/diff/json
curl 'https://api.kamineko.dev/v1/diff/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "old": {
    "name": "Mochi",
    "lives": 9,
    "naps": [
      "morning",
      "afternoon"
    ],
    "owner": {
      "name": "Ada",
      "phone": "555-0100"
    }
  },
  "new": {
    "name": "Mochi",
    "lives": 8,
    "naps": [
      "morning",
      "noon",
      "afternoon"
    ],
    "owner": {
      "name": "Ada"
    }
  }
}'

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the diff_json tool with this prompt.

Give me a JSON Patch from the old settings to the new ones.
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"