{"uid":"cap_a9AFoeqRDwXiCpT2uaTtZ","slug":"json-drop-null-transform-cfcc9268","name":"JSON Drop-Null Transform","description":"Call when an agent needs JSON rewritten with the drop-null transform. No network. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/json-drop-null first.","url":"https://agentshelf.syntexa.ch/v1/json-drop-null?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["{\"b\":1,\"a\":2}"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BoDQHi3xhkBn-I9OPHo0E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites a JSON string by removing all null-valued keys, returning a compact null-free JSON object","exampleAgentPrompt":"Can you clean up this JSON by removing all the null fields? Here's the payload: {\"name\":\"Alice\",\"age\":null,\"email\":\"alice@example.com\",\"phone\":null}","exampleUseCases":[{"title":"Clean API response before storage","prompt":"This API response has a bunch of null fields cluttering it up — can you strip all the nulls out of this JSON before we save it to the database? Here's the JSON: {\"id\":\"abc123\",\"score\":42,\"label\":null,\"metadata\":null,\"timestamp\":\"2024-01-15\"}"},{"title":"Sanitize JSON before third-party POST","prompt":"I need to send this JSON to a partner API that rejects null values — can you rewrite it with all the null keys removed? The JSON is: {\"userId\":\"u9\",\"plan\":\"pro\",\"discount\":null,\"referral\":null,\"startDate\":\"2024-06-01\"}"},{"title":"Compact sparse config file","prompt":"My config JSON has a lot of optional fields that ended up null — can you drop all the null entries so I'm left with just the values that are actually set? Here it is: {\"host\":\"localhost\",\"port\":8080,\"proxy\":null,\"timeout\":null,\"debug\":true}"}],"resultDescription":"Returns the input JSON string rewritten with all null-valued keys removed, as a compact valid JSON object. No network calls are made; the transformation is purely local.","failureModes":["Input text is not valid JSON — returns an error indicating malformed input","Input exceeds 100,000 character limit — returns a validation error","Empty string input — rejected by minLength:1 constraint","Malformed request body missing the 'text' field — returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, paid-via-x402 null-stripping transform on a JSON string with no network dependencies. If a free sandbox endpoint at POST /v1/sandbox/json-drop-null is available, prefer that first. Use this paid endpoint when the sandbox is unavailable or rate-limited, or when operating in a production payment-capable agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:06.133Z","isFirstParty":false,"canonicalSlug":"json-drop-null-transform-cfcc9268"}