{"uid":"cap_yQV_1IL70jtCbDDn-Wcrh","slug":"delx-commerce-json-object-diff-c1058844","name":"Delx Commerce — JSON Object Diff","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-object-diff?utm_source=zero.xyz","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_pKIYpUX1bCWG5GPgm6AEs","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":"Computes the structural difference between two JSON objects, returning added, changed, and removed fields with before/after values.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what was added, changed, or removed — before is {\"a\":1,\"b\":2} and after is {\"a\":2,\"c\":3}.","exampleUseCases":[{"title":"API response change tracking","prompt":"I got two different JSON responses from a third-party API — the first one has {\"status\":\"active\",\"plan\":\"free\",\"seats\":1} and the second has {\"status\":\"active\",\"plan\":\"pro\",\"seats\":5}. Can you diff them and show me exactly what changed?"},{"title":"Config drift detection","prompt":"Here are two versions of a service config object — before: {\"timeout\":30,\"retries\":3,\"region\":\"us-east\"} and after: {\"timeout\":60,\"retries\":3,\"region\":\"eu-west\",\"debug\":true}. What fields were added or changed?"},{"title":"Audit trail for record updates","prompt":"A user record was updated in our system. The old version is {\"email\":\"alice@example.com\",\"role\":\"viewer\",\"active\":true} and the new version is {\"email\":\"alice@example.com\",\"role\":\"admin\",\"active\":false,\"verified\":true}. Show me a structured diff of what changed."}],"resultDescription":"Returns a structured diff object with three keys: 'added' (fields present only in the after object), 'changed' (fields in both objects with differing values, showing before and after values), and 'removed' (fields present only in the before object). Also returns a status field ('pass'), operation identifier, evidence metadata including a SHA-256 hash of the input and confirmation that no data is retained after processing.","failureModes":["Input objects exceed 128 properties — API enforces maxProperties:128 on both before and after","Malformed JSON body returns a validation error","Payment not provided or insufficient USDC — x402 payment required before result is returned","Network timeout if the x402 payment handshake is slow"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON object diff with no signup, guaranteed in-memory processing (no data retention), and cryptographic evidence of the computation. Ideal for AI agents that need to detect state changes between two JSON snapshots in a verifiable, auditable way without standing up infrastructure. Prefer over custom diffing logic when you want a standardized schema ('delx/util-json-object-diff/v1') and an input hash for audit purposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.472Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-object-diff-c1058844"}