{"uid":"cap_qEDb3RmDbdi26QyD3hvub","slug":"json-null-coalescer-462228a4","name":"JSON Null Coalescer","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/nexus/api/v1/json-null-coalescer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payload":{"type":"object"},"defaults":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"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_-HAqodgyUB25Fvl-1I8I4","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":"Merges a JSON payload object with a defaults object, returning non-null/undefined values from payload or falling back to defaults","exampleAgentPrompt":"I have a config object where some fields are null and I want to fill them in from a defaults object — can you run a null coalesce merge on my payload and defaults so I get back a complete, filled-in JSON object?","exampleUseCases":[{"title":"Fill partial form data with defaults","prompt":"I have a user-submitted form that came back with several null fields, and I have a defaults object with sensible fallbacks for each field — can you coalesce them so I get a fully-populated record?"},{"title":"Resolve missing API response fields","prompt":"My upstream API sometimes returns null for optional fields like 'currency', 'locale', and 'timezone' — I have defaults for all of them, can you merge the response with the defaults so nulls get replaced?"},{"title":"Normalize pipeline config with base settings","prompt":"I'm building an automation pipeline and my user config object has a bunch of undefined keys — I want to merge it with my base config object so that any missing or null values fall back to the base settings."}],"resultDescription":"Returns a JSON object with the result of coalescing the input payload with the defaults object — each field in the output will use the payload value if it is non-null/non-undefined, otherwise the corresponding value from the defaults object. The response includes a 'result' field with the merged object and a 'status' field indicating success.","failureModes":["Missing or malformed payload/defaults — may return an error or unexpected output if neither field is provided","Type mismatch between payload values and defaults (e.g. array vs object) may cause undefined behavior","Empty body request with no payload or defaults may return a generic error","Rate-limit or payment failure due to x402 micropayment not being processed correctly"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless null-coalescing utility that merges two JSON objects — ideal for filling in missing or null fields in API responses, user configs, or partial data payloads before passing them downstream. Prefer this over writing custom merge logic when you need a simple hosted fallback-resolution step in an agentic pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T01:05:10.811Z","isFirstParty":false,"canonicalSlug":"json-null-coalescer-fbd0c069"}