JSON diff
Compare two JSON documents and get a JSON Patch.
Paste the original text and a revised version. The unified diff marks removed lines with a minus and added lines with a plus.
Example
+3 −2 lines
--- old
+++ new
@@ -1,4 +1,5 @@
name: kamineko
-teeth: sharp
+teeth: sharper
naps: 3
-bowl: empty
+bowl: full
+treats: yes
{
"identical": false,
"minimal": true,
"added": 3,
"removed": 2,
"hunks": [
{
"oldStart": 1,
"oldLines": 4,
"newStart": 1,
"newLines": 5,
"lines": [
{
"type": "context",
"text": "name: kamineko",
"oldLine": 1,
"newLine": 1
},
{
"type": "removed",
"text": "teeth: sharp",
"oldLine": 2,
"newLine": null
},
{
"type": "added",
"text": "teeth: sharper",
"oldLine": null,
"newLine": 2
},
{
"type": "context",
"text": "naps: 3",
"oldLine": 3,
"newLine": 3
},
{
"type": "removed",
"text": "bowl: empty",
"oldLine": 4,
"newLine": null
},
{
"type": "added",
"text": "bowl: full",
"oldLine": null,
"newLine": 4
},
{
"type": "added",
"text": "treats: yes",
"oldLine": null,
"newLine": 5
}
]
}
],
"unified": "--- old\n+++ new\n@@ -1,4 +1,5 @@\n name: kamineko\n-teeth: sharp\n+teeth: sharper\n naps: 3\n-bowl: empty\n+bowl: full\n+treats: yes\n"
}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".
/v1/diff/textcurl 'https://api.kamineko.dev/v1/diff/text' \
-H 'Content-Type: application/json' \
--data-raw '{
"old": "name: kamineko\nteeth: sharp\nnaps: 3\nbowl: empty\n",
"new": "name: kamineko\nteeth: sharper\nnaps: 3\nbowl: full\ntreats: yes\n",
"context": 1
}'Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the diff_text tool with this prompt.
What changed between these two versions of my config?
https://api.kamineko.dev/mcpclaude mcp add --transport http kamineko \
https://api.kamineko.dev/mcp \
--header "Authorization: Bearer $KAMINEKO_API_KEY"Compare two JSON documents and get a JSON Patch.
Infer TypeScript interfaces for nested objects and optional fields.
Generate a Zod 4 schema that recognizes emails, URLs, and dates.
Infer a draft 2020-12 schema from sample records.