{"uid":"cap_v4hWsqdkRQoc_iSlpW8pE","slug":"json-object-diff-d1c8797e","name":"JSON Object Diff","description":"JSON Object Diff: JSON Object Diff reports added, removed, and changed top-level object keys from bounded caller-supplied values without an external provider. Call JSON Object Diff before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Object Diff as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…","url":"https://api.delx.ai/api/v1/x402/json-object-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","description":"After supplied to JSON Object Diff; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"before":{"type":"object","description":"Before supplied to JSON Object Diff; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"added":{"c":3},"changed":{"a":{"after":2,"before":1}},"removed":{"b":2}},"schema":"delx/util-json-object-diff/v1","status":"pass","evidence":{"retained":false,"input_sha256":"164aa307def42287450ca3e3593d1a42c71383be4ad4b1f0c368f8c66f056f3e","external_calls":0},"operation":"data_batch:json_object_diff"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XSDMpnkux4gQbfYCqQrrs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two JSON objects and reports added, removed, and changed top-level keys with counts and normalized values","exampleAgentPrompt":"Compare these two JSON objects for me and tell me exactly which top-level keys were added, removed, or changed — before: {\"name\":\"Alice\",\"age\":30,\"role\":\"user\"} and after: {\"name\":\"Alice\",\"age\":31,\"role\":\"admin\",\"verified\":true}.","exampleUseCases":[{"title":"Preflight check before downstream tool","prompt":"Before sending this updated config payload to the deployment pipeline, diff the old config against the new one and show me exactly which keys changed so I can confirm nothing unexpected got modified."},{"title":"Audit agent-mutated data record","prompt":"My agent just transformed a customer record — can you diff the original object against the modified version and tell me which fields were added, removed, or changed so I can verify it only touched the fields it was supposed to?"},{"title":"Validate API response drift","prompt":"I got two different responses from our API at different times — diff them as JSON objects and tell me which top-level keys are new, missing, or have different values between the two snapshots."}],"resultDescription":"Returns a versioned deterministic JSON result containing lists of added, removed, and changed top-level keys, along with counts of each change type, normalized values for the diffed fields, and a versioned result contract.","failureModes":["Either 'before' or 'after' object exceeds 128-property limit — request rejected","Malformed or non-object input for before/after fields — validation error","Payment failure via x402 — request not processed","Network timeout or service unavailability — no result returned"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, in-memory diff of two JSON objects' top-level keys without persisting data — especially as a preflight step before handing structured data to a downstream tool with a strict contract. Prefer it over general-purpose diffing logic when you need a versioned, normalized result contract for auditability in an agentic pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:02:43.219Z","isFirstParty":false}