{"uid":"cap_-_Epi58YVwKvx2bgZjNS9","slug":"agent402-tools-json-deep-merge-899bbe12","name":"agent402.tools JSON Deep Merge","description":"Deep-merge two JSON objects (b wins on conflicts; arrays are concatenated).","url":"https://agent402.tools/api/json-merge","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"description":"Base object"},"b":{"description":"Override object"}}},"responseSchema":{"type":"json","example":{"result":{"n":{"p":1,"q":2},"x":1,"y":2}}},"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_a5frEZa78Zef9IPWteVST","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":"Deep-merges two JSON objects where b overrides a on conflicts and arrays are concatenated.","exampleAgentPrompt":"Deep-merge these two JSON objects for me — use {\"theme\":\"light\",\"fontSize\":14,\"plugins\":[\"prettier\"]} as the base and {\"fontSize\":16,\"plugins\":[\"eslint\"],\"debug\":true} as the override, so conflicts go to the override and arrays get concatenated.","exampleUseCases":null,"resultDescription":"A single merged JSON object where all keys from both inputs are present, b's values win on any conflicting keys, and array values from both objects are concatenated together.","failureModes":["Non-object input (e.g. array or primitive at top level) may return an error or unexpected result","Malformed JSON in either field returns a 400 parse error","Missing required fields a or b may cause a 422 validation error","Very deeply nested or extremely large objects may hit size or recursion limits"],"whenToPreferThis":"Use this endpoint when you need a true deep merge — not a shallow Object.assign — specifically when you want arrays concatenated rather than replaced and nested objects recursively combined. Ideal for merging configuration objects, combining API response payloads, or layering environment-specific overrides onto a base config.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:05:52.013Z","isFirstParty":false}