{"uid":"cap_VQUEQR7Wfp8EaAJYdRKxT","slug":"data-toolkit-json-diff-c670e062","name":"Data Toolkit – JSON Diff","description":"Compute the RFC 6902 JSON Patch that transforms `source` into `target`. The patch is a minimal array of add/remove/replace operations.","url":"https://data.openverbs.com/v1/diff","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["source","target"],"properties":{"source":{"description":"The original JSON document."},"target":{"description":"The desired JSON document."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lvT_GBVvlvszyUEpxScxx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structured diff between two JSON documents, showing what changed from source to target.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what changed — here's the original: {\"name\":\"Alice\",\"age\":30} and the updated version: {\"name\":\"Alice\",\"age\":31,\"city\":\"NYC\"}.","exampleUseCases":[{"title":"Config change detection in CI","prompt":"My app's config JSON changed between deploys — original was {\"timeout\":30,\"retries\":3} and the new one is {\"timeout\":60,\"retries\":3,\"debug\":true}. Can you diff them and show me exactly what was added or changed?"},{"title":"API response drift monitoring","prompt":"I'm getting two different responses from a third-party API and I need to know exactly what's different. Source response is {\"status\":\"active\",\"plan\":\"basic\"} and the new one is {\"status\":\"active\",\"plan\":\"pro\",\"seats\":5}. What changed?"},{"title":"Data migration validation","prompt":"After migrating a user record, I want to verify what fields changed. Before migration: {\"email\":\"bob@example.com\",\"role\":\"viewer\"}, after: {\"email\":\"bob@example.com\",\"role\":\"editor\",\"verified\":true}. Can you compute the diff?"}],"resultDescription":"A structured representation of the differences between the source and target JSON documents, including which fields were added, removed, or modified, expressed as a JSON diff or patch object.","failureModes":["Missing 'source' or 'target' fields returns a validation error","Non-JSON or malformed body fields cause parsing failures","Very deeply nested or extremely large JSON documents may time out or hit size limits","Passing non-object JSON types (arrays, primitives) at the root may produce unexpected results","Network or payment authorization failure returns a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, structured diff between two JSON documents — especially in automation pipelines, CI/CD change detection, API response comparison, or data migration validation. Prefer it over text-based diff tools when your data is structured JSON and you need machine-readable output about what changed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:39.056Z","isFirstParty":false}