diff_json
Deep compare two JSON strings and produce a structured diff report. Detects added, removed, changed keys and type changes with JSONPath locations.
Instructions
Deep compare two JSON strings and produce a structured diff report. Detects added keys, removed keys, changed values, and type changes. Returns a list of differences with their JSONPath locations and old/new values.
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": {
"json_a": "<json_a>",
"json_b": "<json_b>"
},
"name": "diff_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_a | Yes | The first (base/original) JSON string. | |
| json_b | Yes | The second (new/modified) JSON string. |