# SignalDesk AI JSON Diff

> SignalDesk AI JSON Diff is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Computes a JSON Patch (RFC 6902) diff between two JSON values, returning the sequence of add/replace/remove operations needed to transform 'before' into 'after'

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/json/diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-json-diff-4584a6bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rjyq41ETYkVn8ibb1eJyi

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 signaldesk-ai-json-diff-4584a6bb -d '<json body>'
```

Example prompt: Compare these two JSON objects and give me the patch operations needed to go from the old version to the new one — before is {"a":1,"b":2} and after is {"a":3,"c":4}.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON diff computation without running your own server — especially useful for agents performing change detection, config audits, or migration planning where you need RFC 6902-compliant patch arrays. Prefer it over local libraries when operating in serverless or sandboxed environments without native JSON patch support.

## Known failure modes

- Malformed or non-JSON input for 'before' or 'after' fields returns an error
- Overly large or deeply nested JSON structures may be rejected due to bounded execution limits
- Missing required fields ('before' or 'after') results in a validation error
- Payment not provided or insufficient USDC causes a 402 Payment Required response
- Cloudflare Worker cold start or quota exhaustion may cause transient 5xx errors

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

A JSON object with a 'patch' array containing RFC 6902 patch operation objects, each with an 'op' field (add, remove, or replace), a 'path' field (JSON Pointer string), and optionally a 'value' field for add/replace operations. The patch fully describes how to transform the 'before' JSON into the 'after' JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "description": "JSON value; bounded structure."
  },
  "before": {
   "description": "JSON value; bounded structure."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "patch": [
   {
    "op": "remove",
    "path": "/b"
   },
   {
    "op": "replace",
    "path": "/a",
    "value": 3
   },
   {
    "op": "add",
    "path": "/c",
    "value": 4
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-json-diff-4584a6bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
