{"uid":"cap_lmV9nQrVGpWOIIyxJA_3n","slug":"penny-army-json-merge-patch-0e470271","name":"Penny Army JSON Merge Patch","description":"Apply an RFC 7396 merge patch to supplied JSON with own-property-safe object construction; no stored data is changed.","url":"https://penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev/v1/probes/json-merge-patch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"patch":{"$ref":"#/properties/input/properties/body/$defs/__schema0"},"target":{"$ref":"#/properties/input/properties/body/$defs/__schema0"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UbD9sYGI6cBjpXynVboKz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies an RFC 7396 JSON merge patch to a target JSON object using own-property-safe object construction, without storing or mutating any persisted data.","exampleAgentPrompt":"Apply this RFC 7396 merge patch — {\"status\": \"active\", \"score\": null} — to my target object {\"name\": \"Alice\", \"status\": \"pending\", \"score\": 42} and give me the resulting merged JSON.","exampleUseCases":[{"title":"Partial update preview before write","prompt":"Before I save anything to my database, apply this patch {\"role\": \"admin\", \"trialExpiry\": null} to my user record {\"id\": \"u123\", \"role\": \"viewer\", \"trialExpiry\": \"2024-12-01\", \"email\": \"user@example.com\"} so I can see what the final object would look like."},{"title":"Null-key removal via merge patch","prompt":"I have a config object {\"timeout\": 30, \"debug\": true, \"retries\": 5} and I want to remove the 'debug' key and update 'timeout' to 60 using RFC 7396 merge patch semantics — can you compute the result?"},{"title":"API response delta application","prompt":"I received a partial update payload {\"price\": 9.99, \"inStock\": false} from a webhook and need to apply it to my cached product record {\"id\": \"prod-7\", \"price\": 12.00, \"inStock\": true, \"name\": \"Widget\"} — what does the merged object look like?"}],"resultDescription":"The merged JSON object resulting from applying the RFC 7396 patch to the target: keys present in the patch overwrite corresponding keys in the target, keys set to null in the patch are removed from the target, and keys absent from the patch remain unchanged. No data is persisted.","failureModes":["Malformed JSON in either target or patch field causes a 400 error","Non-object top-level values (arrays, primitives) may be rejected or handled unexpectedly","Missing required fields (target or patch) returns a validation error","Network timeout or worker unavailability returns a 5xx error","Payment failure or insufficient balance returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a stateless, RFC 7396-compliant JSON merge patch computation without any side effects or stored state changes. It is ideal for previewing the result of a partial update before committing it to a database, or for applying webhook delta payloads to cached objects in memory. Prefer it over a full JSON Patch (RFC 6902) implementation when you want simpler merge semantics with null-means-delete behavior.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:58.562Z","isFirstParty":false,"canonicalSlug":"penny-army-json-merge-patch-0e470271"}