# CoCo JSON Diff Tool

> CoCo JSON Diff Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Compares two JSON objects and returns a structured diff showing whether they are equal and what changed

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/json-diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-json-diff-tool-30b61ea6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_95tsMPjYrTMLCgTVdBGxd

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 coco-json-diff-tool-30b61ea6
```

Example prompt: Can you compare these two JSON objects and tell me what's different? First one is {"value":1,"name":"alpha"} and the second is {"value":2,"name":"alpha"}.

## When to prefer this

Use this endpoint when you need a lightweight, per-call JSON structural diff with a clear list of changed paths and values — particularly useful in agentic pipelines that need to detect data drift, validate transformations, or compare API responses without setting up a local diff library.

## Known failure modes

- Missing 'a' or 'b' query parameters returns an error
- Malformed or non-JSON values in parameters cause parse errors
- Very large or deeply nested JSON objects may hit size limits
- URL encoding issues with special characters in query params

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with an 'equal' boolean indicating whether the two inputs match, a 'changes' array listing each difference with op (operation type), path (JSON pointer to the changed field), old value, and new value, plus a 'change_count' integer summarizing the number of differences found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "a": {
       "type": "string"
      },
      "b": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "equal"
     ],
     "properties": {
      "equal": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "equal": false,
  "changes": [
   {
    "op": "changed",
    "new": 2,
    "old": 1,
    "path": "/value"
   }
  ],
  "change_count": 1
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-json-diff-tool-30b61ea6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
