# JSON Diff — Reliable JSON for AI Agents

> JSON Diff — Reliable JSON for AI Agents is a paid API for AI agents from agent-json-reliability.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes a structured diff between two JSON documents, highlighting additions, deletions, and modifications deterministically.

## Facts

- Endpoint: POST https://agent-json-reliability.onrender.com/v1/json/diff?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-diff-reliable-json-for-ai-agents-746c806e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZ_0_4NGcIMTDJHi7PG03

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 json-diff-reliable-json-for-ai-agents-746c806e -d '<json body>'
```

Example prompt: Compare these two JSON objects and show me exactly what changed — what was added, removed, or modified between them.

## When to prefer this

Use this endpoint when you need a deterministic, structured diff of two JSON documents — especially in AI agent pipelines where you need reliable change detection without spinning up your own diffing logic. Prefer it over generic text-diff tools when the input is structured JSON and you need field-level change granularity.

## Known failure modes

- Malformed or non-parseable JSON input returns an error
- Missing one or both JSON bodies causes a validation failure
- Payment not included or insufficient USDC triggers a 402 response
- Large deeply nested documents may time out on the hosted Render instance

## How this service works

Deterministic JSON repair and JSON Schema validation for AI agents. Free MCP, inspect, validate, repair. Paid POST /v1/json/reliable 0.003 USDC via x402 on Base.

## Output

Returns a structured diff result indicating which keys were added, removed, or modified between the two input JSON documents, with a boolean 'ok' field confirming success.

## Response schema (JSON Schema)

```json
{
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-diff-reliable-json-for-ai-agents-746c806e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-json-reliability.onrender.com](https://www.zero.xyz/host/agent-json-reliability.onrender.com/llms.txt)
