{"uid":"cap_9nlfqBg6G_rAXgMZ0WSVj","slug":"aiskills402-json-diff-paths-601ecc47","name":"aiskills402 JSON Diff Paths","description":"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…","url":"https://api.aiskills402.com/v1/skills/json-diff-paths/file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yseliXk09iDc2qkA4hOek","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two JSON documents (BEFORE and AFTER) and returns a strict list of changed paths and values using JSON Pointer notation","exampleAgentPrompt":"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}.","exampleUseCases":[{"title":"API response change detection","prompt":"I have two versions of an API response and I want to know exactly what changed — the BEFORE is {\"user\":{\"name\":\"Alice\",\"role\":\"viewer\"}} and the AFTER is {\"user\":{\"name\":\"Alice\",\"role\":\"admin\",\"verified\":true}}. Show me each changed path with old and new values."},{"title":"Config file audit before deploy","prompt":"Before I deploy, can you diff these two config JSONs and list every value that's different? BEFORE: {\"timeout\":30,\"retries\":3,\"debug\":false} and AFTER: {\"timeout\":60,\"retries\":3,\"debug\":true}."},{"title":"Debugging unexpected data mutation","prompt":"Something mutated my JSON object and I'm not sure what changed. Here's the original: {\"items\":[1,2,3],\"total\":3} and the current state: {\"items\":[1,2,4],\"total\":3}. Tell me exactly which JSON Pointer paths have different values."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:14.539Z","isFirstParty":false,"canonicalSlug":"aiskills402-json-diff-paths-601ecc47"}