{"uid":"cap_A_dChzTwrjQmJTw8DNFGz","slug":"json-null-prune-70626d17","name":"JSON Null Prune","description":"JSON Null Prune: JSON Null Prune removes null-valued top-level keys from a JSON object from bounded caller-supplied values without an external provider. Call JSON Null Prune before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Null Prune as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party,…","url":"https://api.delx.ai/api/v1/x402/json-null-prune","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_EZxYMz0sDCPg67WV1oTVe","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 all null-valued top-level keys from a JSON object and returns the pruned object with counts and a versioned result contract","exampleAgentPrompt":"Clean up this JSON object by removing any top-level keys that have null values before I pass it to the next tool: {\"user_id\": 42, \"name\": null, \"email\": \"test@example.com\", \"phone\": null}.","exampleUseCases":[{"title":"Sanitize agent output before downstream tool","prompt":"Before sending this batch plan JSON to the fulfillment API, strip out any top-level keys that are null — I don't want schema validation errors on their end."},{"title":"Clean API response before storage","prompt":"I've got a JSON object from the data enrichment step and some fields came back null. Can you prune those null top-level keys out so the clean version is what gets stored?"},{"title":"Prepare structured data for strict contract","prompt":"This agent result has a bunch of null fields at the top level that will fail the downstream validator. Remove all the null-valued top-level keys and tell me how many were dropped."}],"resultDescription":"Returns a versioned deterministic JSON object containing the pruned input object (all null top-level keys removed), a count of keys removed, a count of keys retained, and normalized values — all within a versioned result contract envelope.","failureModes":["Input object exceeds 128 top-level properties — rejected with validation error","Input is not a valid JSON object (e.g. array or primitive) — returns schema error","Network or payment failure via x402 protocol — returns HTTP 402 or connection error","Empty object input — returns empty pruned object with zero counts"],"whenToPreferThis":"Use this endpoint when an agent needs to clean a JSON object of null top-level keys before passing it to a downstream tool with a strict or null-intolerant schema contract. Prefer it over manual filtering logic when you need a versioned, auditable, deterministic result with key counts. It is lightweight ($0.001 USDC), in-memory with no retention, and purpose-built for agentic pipeline hygiene.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:59:25.553Z","isFirstParty":false}