{"uid":"cap_0-PGwjgqYpOo6AHc-EfSN","slug":"fastx402-json-merge-patch-eef2d165","name":"FastX402 JSON Merge Patch","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/json-merge-patch?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["target","patch"],"properties":{"patch":{"type":"string","description":"The RFC 7386 JSON Merge Patch to apply"},"target":{"type":"string","description":"The original JSON document to be patched"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"object","properties":{"age":{"type":"integer"},"name":{"type":"string"},"active":{"type":"boolean"},"address":{"type":"object","properties":{"zip":{"type":"string"},"city":{"type":"string"}}}}}}}}}}},"responseSchema":{"type":"json","example":{"result":{"age":31,"name":"Alice","active":true,"address":{"zip":"10002","city":"NYC"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.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_QBC145BETvXiWjISF9zF1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies an RFC 7386 JSON Merge Patch document to a target JSON object, returning the merged result","exampleAgentPrompt":"Apply this JSON merge patch — {\"age\": 31, \"address\": {\"city\": \"NYC\", \"zip\": \"10002\"}, \"active\": true} — to my base document {\"name\": \"Alice\", \"age\": 28, \"address\": {\"city\": \"Boston\"}, \"active\": false} and give me the merged result.","exampleUseCases":[{"title":"Partial config update via patch","prompt":"I have a JSON config object {\"host\": \"localhost\", \"port\": 8080, \"debug\": false} and I want to apply this patch {\"port\": 9090, \"debug\": true} to update just those fields — can you merge them?"},{"title":"Nullifying fields in a user record","prompt":"I need to remove the 'nickname' field and update the 'email' to 'bob@example.com' in this JSON record {\"name\": \"Bob\", \"nickname\": \"Bobby\", \"email\": \"old@example.com\"} — apply the RFC 7386 merge patch {\"nickname\": null, \"email\": \"bob@example.com\"} for me."},{"title":"Merging nested JSON objects","prompt":"Take this base JSON {\"product\": \"widget\", \"metadata\": {\"color\": \"red\", \"size\": \"M\"}} and apply this patch {\"metadata\": {\"color\": \"blue\", \"weight\": \"150g\"}} so the metadata gets properly merged — what's the result?"}],"resultDescription":"A JSON object containing a 'result' key whose value is the fully merged JSON document after applying the RFC 7386 merge patch to the target — with patched fields updated, null-patched fields removed, and unpatched fields preserved.","failureModes":["Invalid JSON in target or patch query parameters returns an error","Malformed RFC 7386 patch structure may produce unexpected output or error","Missing required 'target' or 'patch' query parameters returns a validation error","Payment failure or insufficient USDC balance blocks the request","Network timeout if the service is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, pay-per-call RFC 7386 JSON Merge Patch operation with no account or API key setup. Ideal for agents that need to merge or partially update JSON objects on the fly without spinning up a local library or language runtime. Prefer over full JSON Patch (RFC 6902) when your update logic is simple field-level overrides or deletions rather than complex array operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:20:56.822Z","isFirstParty":false,"canonicalSlug":"fastx402-json-merge-patch-eef2d165"}