{"uid":"cap_HPBooPe8BVqUETK1LPHYR","slug":"dataforge-rfc-6902-json-diff-patch-api-466b39ee","name":"dataforge RFC 6902 JSON Diff & Patch API","description":"Deterministic conversion, JSONPath query, JSON Schema inference, declarative transforms and RFC 6902 diff/patch across CSV, TSV, JSON, JSONL, YAML, TOML, XML, INI and properties. Pay per call with x402 (USDC on Base).","url":"https://dataforge.x.c00l.site/diff","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"equal":false,"patch":[{"op":"replace","path":"/replicas","value":3},{"op":"add","path":"/image","value":"nginx"}],"counts":{"add":1,"total":2,"replace":1},"summary":["changed /replicas: 2 -> 3","added /image = \"nginx\""]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lxm8Zc-j5KcpiZDSCCi56","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the RFC 6902 JSON diff (patch operations) between two JSON documents, returning structured change operations, counts, and a human-readable summary","exampleAgentPrompt":"Can you diff these two Kubernetes deployment configs for me and show what changed — I have the old one with replicas: 2 and no image field, and the new one with replicas: 3 and image: nginx — give me the RFC 6902 patch and a plain-English summary of the changes.","exampleUseCases":[{"title":"Kubernetes config drift detection","prompt":"I have two versions of a Kubernetes deployment YAML converted to JSON — the old one has replicas set to 2 and no image specified, the new one has replicas 3 and image nginx. Can you diff them and give me the RFC 6902 patch plus a human-readable summary of what changed?"},{"title":"API response change auditing","prompt":"I'm getting a different JSON response from our payments API than last week. Here are the two response bodies — can you run a JSON diff on them and tell me exactly which fields were added, removed, or changed, with counts?"},{"title":"Configuration migration patch generation","prompt":"I need to migrate our app config from the staging JSON to the production JSON format. Can you compare these two JSON objects and produce an RFC 6902 patch I can apply programmatically, along with a summary of all the differences?"}],"resultDescription":"Returns a JSON object containing: an 'equal' boolean indicating whether the documents are identical, a 'patch' array of RFC 6902 operations (each with op, path, and value), a 'counts' object breaking down operations by type (add, remove, replace, etc. and a total), and a 'summary' array of human-readable strings describing each change (e.g. 'changed /replicas: 2 -> 3').","failureModes":["Invalid JSON in either input document — returns parse error","Malformed request body missing source or target fields — returns 400-level error","Deeply nested or extremely large documents may hit size limits","Payment failure via x402 if USDC balance is insufficient — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, standards-compliant RFC 6902 JSON diff output with both machine-applicable patch operations and human-readable summaries. Prefer it over generic diff tools when you need structured change counts by operation type, or when downstream systems need to apply the patch programmatically. Especially useful in CI/CD pipelines, config auditing, and API versioning workflows where JSON is the native format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:35.258Z","isFirstParty":false}