{"uid":"cap_86Q2PV-qERXdeLqAVtnRv","slug":"json-structural-diff-2462892b","name":"JSON Structural Diff","description":"Structural diff of two JSON documents — add/remove/change operations with JSON-Pointer paths, before/after values, and an identical flag. Compare API responses and configs.","url":"https://toolbelt402.tpoborne.workers.dev/json/diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"description":"Original JSON document"},"b":{"description":"Changed JSON document"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G554OfHPosmdEV_Y74SRN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structural diff between two JSON documents, returning add/remove/change operations with JSON-Pointer paths, before/after values, and an identical flag.","exampleAgentPrompt":"Compare these two JSON objects and show me exactly what changed — list every add, remove, and modify with the JSON-Pointer path and the before/after values: first is {\"name\":\"Alice\",\"role\":\"admin\",\"score\":10} and second is {\"name\":\"Alice\",\"role\":\"user\",\"score\":10,\"active\":true}.","exampleUseCases":[{"title":"Audit API response changes","prompt":"I got two different responses from our payments API — can you diff them and tell me exactly which fields were added, removed, or changed? Here's the old response: {\"status\":\"pending\",\"amount\":100} and the new one: {\"status\":\"settled\",\"amount\":100,\"fee\":2}."},{"title":"Detect config drift between environments","prompt":"We have two environment configs and I need to know what's different between them — compare {\"timeout\":30,\"retries\":3,\"debug\":false} and {\"timeout\":60,\"retries\":3,\"debug\":true,\"logLevel\":\"verbose\"} and give me a full list of changes with their paths."},{"title":"Verify JSON patch was applied correctly","prompt":"I applied a patch to a JSON document and want to confirm only the expected fields changed — diff the original {\"version\":1,\"active\":true,\"tags\":[\"a\"]} against the patched {\"version\":2,\"active\":true,\"tags\":[\"a\",\"b\"]} and tell me if anything unexpected was modified."}],"resultDescription":"Returns a list of diff operations (add, remove, change), each with a JSON-Pointer path indicating the location in the document, the before value, the after value where applicable, and a top-level identical boolean flag indicating whether the two documents are structurally equivalent.","failureModes":["Invalid JSON in either input document — returns a parse error","Missing one or both input documents — returns a validation error","Extremely large or deeply nested JSON may time out or exceed payload limits"],"whenToPreferThis":"Choose this endpoint when you need a precise, structured diff of two JSON documents with JSON-Pointer paths and before/after values — ideal for comparing API responses, detecting configuration drift, verifying patches, or auditing changes between two JSON versions. Prefer this over text-based diff tools when you need machine-readable operations (add/remove/change) rather than line-by-line textual output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:33.018Z","isFirstParty":false}