{"uid":"cap_McVvzAjepU_49tBlMuvuv","slug":"delx-commerce-json-null-prune-4904fec8","name":"Delx Commerce — JSON Null Prune","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-null-prune?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Object supplied to JSON Null Prune; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"object":{"a":1,"c":0},"removed_keys":["b"]},"schema":"delx/util-json-null-prune/v1","status":"pass","evidence":{"retained":false,"input_sha256":"87c8df8571467e64e55b273ef3bf9c2fffef2d81ad0cab8581f5a7d7a6236c39","external_calls":0},"operation":"data_batch:json_null_prune"}},"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_onvmjzzmulgft_9uM_NH7","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":"Removes null-valued keys from a JSON object and returns the pruned object along with the list of removed keys","exampleAgentPrompt":"Can you clean up this JSON object by removing all the null-valued keys: {\"a\": 1, \"b\": null, \"c\": 0, \"d\": null}? I just need the pruned object and a list of what was removed.","exampleUseCases":[{"title":"Clean API response before processing","prompt":"I'm getting a JSON response from an upstream API that has a bunch of null fields cluttering it up — like {\"id\": 42, \"name\": \"Alice\", \"email\": null, \"phone\": null}. Can you strip out all the null keys and tell me which ones were removed?"},{"title":"Sanitize webhook payload for storage","prompt":"Before I store this webhook payload, I want to remove any null fields so my database doesn't have sparse records. Here's the object: {\"event\": \"purchase\", \"user_id\": 99, \"coupon\": null, \"referral\": null, \"amount\": 49.99}. Prune the nulls for me."},{"title":"Compact config object for agent handoff","prompt":"I'm passing a config object to another agent step but I want to remove any null options first so it only sees the active settings. Object is {\"timeout\": 30, \"retries\": null, \"endpoint\": \"https://example.com\", \"auth\": null}. Remove the null keys and give me the clean version."}],"resultDescription":"Returns a JSON object containing the pruned input object (with null-valued keys removed), the list of removed key names, the operation schema identifier, a status of 'pass', and verifiable evidence including a SHA-256 hash of the input and confirmation that no external calls were made and data was not retained.","failureModes":["Object exceeds 128 properties — request rejected","Malformed or non-object input — schema validation error","Network or payment failure via x402 protocol — no result returned","Empty object input — returns unchanged empty object with no removed keys"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, pay-per-call utility to strip null fields from a JSON object without managing infrastructure or signing up for a service. Ideal for AI agents that need trustless, auditable data cleaning with cryptographic evidence of processing. Prefer this over custom code when you need a consistent, versioned operation schema with no data retention guarantees baked into the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-null-prune-4904fec8"}