Structural diff of two JSON documents as JSON-Patch-style operations
json_diffStructural diff of two JSON documents as JSON-Patch-style operations. Compares two JSON values key by key and index by index and returns add / remove / replace operations with JSON Pointer paths and old and new values (up to 2,000 operations). Price: $0.003 USDC per call via x402 (eip155:8453).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>"
},
"name": "json_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Original (a JSON value, or a string containing JSON) | |
| b | Yes | Changed (a JSON value, or a string containing JSON) |