{"uid":"cap_Nmx8WrsRc4K_TKzCnfBVy","slug":"json-null-coalescer-6865e11b","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/agents/api/v1/json-null-coalescer","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_BSAlbSRnsoYKr20Eh-n02","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":"Replaces null or missing values in a JSON payload object with corresponding defaults from a provided defaults object","exampleAgentPrompt":"I have a JSON payload where some fields are null — can you fill in those nulls using my defaults object so I get back a clean, fully-populated object?","exampleUseCases":[{"title":"Sanitize incomplete API response data","prompt":"This API response has several null fields — can you coalesce those nulls using these defaults: {\"country\":\"US\",\"currency\":\"USD\",\"language\":\"en\"} so the downstream system gets valid values?"},{"title":"Apply fallback config values","prompt":"I have a user settings payload where some preferences were never set so they're null — use these defaults to fill them in: {\"theme\":\"light\",\"notifications\":true,\"timezone\":\"UTC\"}."},{"title":"Clean pipeline data before storage","prompt":"Before I store this record, I need any null fields replaced with safe defaults — my payload has several missing values and my defaults object covers all the required fields."}],"resultDescription":"A processed JSON object where any null or missing fields in the input payload have been replaced with the corresponding values from the defaults object. Returns {result: 'processed', status: 'success'} along with the coalesced output object.","failureModes":["Malformed payload or defaults objects may cause a 400 error","If neither payload nor defaults is provided the endpoint may return an empty or error result","Deeply nested null values may not be coalesced if the implementation is shallow-only","Non-object input types may be rejected"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call utility to perform null coalescing on a JSON object without setting up local transformation logic. Particularly useful in agent pipelines where API responses contain sporadic nulls and you need a clean, default-filled object before passing data to the next step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:13.670Z","isFirstParty":false}