{"uid":"cap_6uZLIjAFiRQxwfO3L1z8Q","slug":"x402-shizu-me-json-diff-b5a80751","name":"x402.shizu.me JSON Diff","description":"Diff two JSON documents structurally. POST {a, b} returns every added, removed, and changed path with old/new values, plus an equal flag. Handles nested objects and arrays. For agents comparing API snapshots, config versions, or before/after state without writing traversal code.","url":"https://x402.shizu.me/jsondiff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{},"b":{}}},"responseSchema":{"type":"json","example":{"count":2,"equal":false,"changes":[{"op":"changed","new":2,"old":1,"path":"$.x"},{"op":"added","new":3,"path":"$.y"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FUVfQ5PejnCNm0dlp_YpA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Structurally diffs two JSON documents, returning all added, removed, and changed paths with old/new values and an equality flag.","exampleAgentPrompt":"Compare these two JSON objects and tell me everything that was added, removed, or changed — here's the before: {\"version\":\"1.0\",\"timeout\":30,\"features\":{\"darkMode\":false}} and the after: {\"version\":\"1.1\",\"timeout\":60,\"features\":{\"darkMode\":true,\"betaUI\":true}}.","exampleUseCases":[{"title":"Detect API response drift","prompt":"Here are two snapshots of the /users endpoint response taken 24 hours apart — can you diff them and tell me exactly which fields changed, were added, or disappeared?"},{"title":"Config version comparison","prompt":"I've got two versions of my app's config JSON — the one deployed last week and the current one. Diff them so I can see exactly what changed before I write the release notes."},{"title":"Before/after state validation","prompt":"I just ran a database migration. Here's the JSON export of a record before and after — can you compare them and confirm whether anything unexpected changed, and list every field that's different?"}],"resultDescription":"A structured diff object listing every path in the two JSON documents that was added, removed, or changed, with the old value and new value at each changed path, plus a top-level boolean equal flag indicating whether the documents are identical.","failureModes":["Malformed or non-JSON input for a or b returns an error","Missing required fields a or b in request body","Payment failure or insufficient USDC balance returns 402","Very deeply nested or extremely large JSON documents may time out","Arrays with reordered elements may produce verbose path-level diffs rather than semantic move detection"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured JSON diff without writing custom traversal logic — especially useful for agents comparing API snapshots, config versions, or before/after state changes in a pipeline. Prefer it over text-based diff tools when you need machine-readable path-level changes with typed old/new values rather than line-by-line text output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T05:02:50.612Z","isFirstParty":false,"canonicalSlug":"x402-shizu-me-json-diff-b5a80751"}