{"uid":"cap_Qi4y8547l-hqzji1bIQT6","slug":"json-patch-diff-rfc-6902-0d48316b","name":"JSON Patch Diff (RFC 6902)","description":"JSON Patch diff — compare JSON documents for record updates and configuration synchronization; return a deterministic RFC 6902 patch with RFC 6901 pointers and exact decimal equality. Object removals precede changes; changed arrays are replaced whole, so the patch is bounded rather than guaranteed minimal.","url":"https://data-tools.use.x402atlas.com/json-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8vq1y5BkRrhHVkcwBOWQU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two JSON documents and returns a deterministic RFC 6902 patch list with RFC 6901 pointers, replacing changed arrays wholesale and ordering object removals before changes.","exampleAgentPrompt":"Compare these two JSON configs and give me the RFC 6902 patch I need to apply to migrate from the old version to the new one — I need exact pointer paths and the operations in the right order with removals first.","exampleUseCases":[{"title":"Config drift detection in CI pipeline","prompt":"I have the deployed config JSON and the new desired config JSON — can you diff them and give me the patch operations I need to apply to bring the deployed version in sync?"},{"title":"API record update patch generation","prompt":"Here's the original customer record JSON and the updated version after edits — generate the RFC 6902 patch I should send to the PATCH endpoint so only the changed fields are applied."},{"title":"Audit what changed between JSON snapshots","prompt":"I took a snapshot of this settings document yesterday and again today — can you compare them and list exactly what was added, removed, or changed using JSON Pointer paths?"}],"resultDescription":"Returns a deterministic RFC 6902 JSON Patch array containing operations (add, remove, replace) with RFC 6901 JSON Pointer paths. Object removals are ordered before modifications; changed arrays are replaced in full rather than diffed element-by-element, keeping the patch bounded in size. Decimal equality is exact.","failureModes":["Invalid JSON in either input document returns a parse error","Extremely large JSON documents may hit size or timeout limits","Non-UTF-8 encoded input may cause parsing failures","If both documents are identical, returns an empty patch array"],"whenToPreferThis":"Choose this endpoint when you need a standards-compliant, deterministic RFC 6902 patch between two JSON documents, especially for configuration synchronization or record update workflows where predictable patch ordering (removals before changes) and bounded patch size (arrays replaced whole) are required. Prefer over general-purpose diff tools when you specifically need JSON Pointer paths and RFC 6902 operation format for downstream PATCH API calls or audit trails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:37:22.922Z","isFirstParty":false,"canonicalSlug":"json-patch-diff-rfc-6902-0d48316b"}