{"uid":"cap_qS4nValPQ5JwyLoJ5s5se","slug":"dataforge-rfc-6902-json-patch-apply-cb271d96","name":"dataforge RFC 6902 JSON Patch Apply","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/patch","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"data":"{\n  \"replicas\": 3\n}\n","format":"json","applied":1}},"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_1MDgFcQ8Q-bJMPKoCJlt5","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":"Applies an RFC 6902 JSON Patch document to a target JSON/structured-data document, returning the patched result","exampleAgentPrompt":"Apply this RFC 6902 JSON Patch to my deployment config — the target JSON is '{\"replicas\":1,\"image\":\"nginx\"}' and the patch operations are '[{\"op\":\"replace\",\"path\":\"/replicas\",\"value\":3}]' — give me back the patched JSON.","exampleUseCases":[{"title":"Update Kubernetes config replicas","prompt":"I have a Kubernetes deployment JSON '{\"replicas\":1,\"env\":\"prod\"}' and I want to apply this patch '[{\"op\":\"replace\",\"path\":\"/replicas\",\"value\":5}]' to it — can you apply the RFC 6902 patch and return the updated config as JSON?"},{"title":"Remove sensitive field from API response","prompt":"Take this JSON object '{\"user\":\"alice\",\"password\":\"secret\",\"role\":\"admin\"}' and apply the patch '[{\"op\":\"remove\",\"path\":\"/password\"}]' to strip the password field, then return the cleaned JSON."},{"title":"Add missing field to app config","prompt":"My app config JSON is '{\"debug\":false,\"port\":8080}' and I need to add a log level — apply the RFC 6902 patch '[{\"op\":\"add\",\"path\":\"/logLevel\",\"value\":\"info\"}]' and give me back the full patched config."}],"resultDescription":"Returns the patched document as a JSON-formatted string under the 'data' key, along with the output format label and the count of patch operations successfully applied (e.g. {\"data\":\"{\\n  \\\"replicas\\\": 3\\n}\\n\",\"format\":\"json\",\"applied\":1})","failureModes":["Invalid RFC 6902 patch document — malformed op, missing path or value fields","Target path not found for 'remove' or 'replace' operations returns an error","Conflicting patch operations (e.g. add then remove same path) may return partial apply or error","Input document is not valid JSON — returns parse error","Test operation failure causes entire patch to be rejected"],"whenToPreferThis":"Choose this endpoint when you need to apply a precise, standards-compliant RFC 6902 JSON Patch to a document — ideal when you already have a diff or patch array and want deterministic, atomic application. Prefer over a general transform endpoint when you need the exact JSON Patch semantics (add, remove, replace, move, copy, test operations) and want a count of applied ops back.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:32.625Z","isFirstParty":false}