{"uid":"cap_vXXYU2dF2jZXvRnJasuWz","slug":"delx-commerce-json-boolean-coerce-90910024","name":"Delx Commerce — JSON Boolean Coerce","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-boolean-coerce?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Values supplied to JSON Boolean Coerce; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"values":[true,false,true],"rejected":["bad"]},"schema":"delx/util-json-boolean-coerce/v1","status":"advisory","evidence":{"retained":false,"input_sha256":"b0d8a970d8b95be459de90bd542fe2e952d9487c3b0d629f128cb547e47f6fa2","external_calls":0},"operation":"data_batch:json_boolean_coerce"}},"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_XO9ew9JyYoQOLUzGaoWkE","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":"Coerces an array of string values into JSON booleans, returning converted results and rejecting unparseable inputs.","exampleAgentPrompt":"Can you coerce these strings into proper JSON booleans for me: ['true', '1', 'false', 'yes', 'bad', '0']?","exampleUseCases":[{"title":"Normalize boolean flags from CSV import","prompt":"I imported a CSV and all my boolean columns came in as strings like 'true', 'false', '1', '0', 'yes', 'no' — can you convert all of these to actual JSON booleans and tell me which ones couldn't be parsed?"},{"title":"Sanitize user input before database write","prompt":"Before I write these user-submitted form values to the database, can you coerce this list of strings to proper booleans and flag the ones that are invalid: ['true', 'False', 'on', 'gibberish', '1']?"},{"title":"Audit feature flag configuration strings","prompt":"I have a list of feature flag values from our config file that should all be booleans but they're stored as strings — can you run ['enabled', 'true', '0', 'off', 'nope', 'false'] through a boolean coercion and show me which ones got rejected?"}],"resultDescription":"Returns a JSON object with a 'values' array of coerced booleans corresponding to valid inputs, a 'rejected' array listing strings that could not be coerced, an 'operation' identifier, a 'schema' version string, a 'status' field, and an 'evidence' block containing a SHA-256 hash of the input, a 'retained: false' flag confirming no data is stored, and an 'external_calls: 0' count confirming purely in-memory processing.","failureModes":["Input array exceeds 256 items — request rejected","Individual string values exceeding 8192 characters — item rejected","Malformed request body — 400-level error","Payment not received or insufficient USDC — 402 Payment Required","Strings with no valid boolean interpretation included in 'rejected' array"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use, verifiable boolean coercion utility with no signup overhead. Ideal for agents operating in automated pipelines that need to normalize string-encoded boolean flags from CSVs, configs, or user input before downstream processing. The verifiable evidence block (SHA-256 hash, no-retention guarantee, zero external calls) makes it suitable for compliance-sensitive workflows. Prefer it over building custom coercion logic when you want a standardized, auditable result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.302Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-boolean-coerce-90910024"}