# MoneyTools JSON Diff

> MoneyTools JSON Diff is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Computes a structured diff between two JSON objects, highlighting added, removed, and changed fields

## Facts

- Endpoint: POST https://tools.moneytools.dev/v1/json-diff?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-json-diff-1324e75d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uOZLuHo3j6YdhKD_hkQqt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability moneytools-json-diff-1324e75d -d '<json body>'
```

Example prompt: Can you diff these two JSON objects and show me exactly what changed — the old one is {"tags":["x"],"price":1} and the new one is {"new":true,"tags":["x","y"],"price":2}?

## When to prefer this

Choose this endpoint when you need a quick, cheap, structured diff between two JSON objects without spinning up custom code — especially useful in agent workflows comparing API snapshots, config versions, or decoded blockchain transaction data. At $0.001 per call with a free daily tier, it's ideal for high-frequency monitoring scenarios.

## Known failure modes

- Invalid or malformed JSON in either 'a' or 'b' field returns an error
- Missing required 'a' or 'b' parameters causes a validation error
- Deeply nested or very large JSON objects may exceed size limits
- Non-object JSON types (arrays, primitives) at the root level may not be supported

## How this service works

Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.

## Output

A structured JSON diff result showing which fields were added, removed, or modified between the two input JSON objects, including the before and after values for changed fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "object",
   "examples": [
    {
     "tags": [
      "x"
     ],
     "price": 1
    }
   ],
   "description": "old JSON"
  },
  "b": {
   "type": "object",
   "examples": [
    {
     "new": true,
     "tags": [
      "x",
      "y"
     ],
     "price": 2
    }
   ],
   "description": "new JSON"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "equal": false,
  "patch": [
   {
    "op": "replace",
    "path": "/price",
    "value": 2
   },
   {
    "op": "add",
    "path": "/tags/1",
    "value": "y"
   },
   {
    "op": "add",
    "path": "/new",
    "value": true
   }
  ],
  "format": "JSON Pointer paths; patch is RFC 6902-style",
  "changes": [
   {
    "op": "replace",
    "old": 1,
    "path": "/price",
    "value": 2
   },
   {
    "op": "add",
    "path": "/tags/1",
    "value": "y"
   },
   {
    "op": "add",
    "path": "/new",
    "value": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-json-diff-1324e75d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
