# aiskills402 JSON Diff Paths

> aiskills402 JSON Diff Paths is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Compares two JSON documents (BEFORE and AFTER) and returns a strict list of changed paths and values using JSON Pointer notation

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/json-diff-paths/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-json-diff-paths-601ecc47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9nlfqBg6G_rAXgMZ0WSVj

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 aiskills402-json-diff-paths-601ecc47
```

Example prompt: Compare these two JSON documents and list every path that changed along with the old and new values — here's the BEFORE: {"status":"active","count":3} and the AFTER: {"status":"inactive","count":5}.

## When to prefer this

Choose this endpoint when you need a precise, type-strict, machine-readable diff of two JSON documents using JSON Pointer paths. It is ideal for developers and agents that need to programmatically identify exactly which fields changed, with strict type semantics (string '1' vs number 1, null vs missing key). Prefer this over generic text-diff tools when JSON structure matters, or over JSON merge utilities when you want a list of changed paths rather than a merged result.

## Known failure modes

- Invalid JSON in BEFORE or AFTER document — endpoint refuses and returns an error rather than attempting to parse
- Malformed JSON Pointer paths in output if input has deeply nested or unusual key names
- No differences found returns an empty diff list, which may be mistaken for an error
- Very large JSON documents may time out or hit size limits

## How this service works

JSON Diff Paths — Compares two pasted JSON documents, BEFORE and AFTER, and lists every value that differs as strict JSON, one entry per changed path, with the old and the new value. Paths are JSON Pointers, types are strict (the string "1" is not the number 1, null is not a missing key, an empty array is not an empty object), arrays are compared by index with no move detection, object key order and number spelling (1.0, 1e2) are not changes, and a document that is not valid JSON is refused, ne…

## Output

Returns a strict JSON array where each entry represents one changed path, including the JSON Pointer path, the old value, and the new value. Types are treated strictly (string vs number vs null), arrays are compared by index, and object key order differences are not reported as changes. Invalid JSON input is refused with an error.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-json-diff-paths-601ecc47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
