{"uid":"cap_0q-tfZ8yPsB0bFYoxcfjq","slug":"delx-commerce-json-number-coerce-8c6542bf","name":"Delx Commerce — JSON Number 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-number-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 Number Coerce; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"values":[1,2.5],"rejected":["bad"]},"schema":"delx/util-json-number-coerce/v1","status":"advisory","evidence":{"retained":false,"input_sha256":"b08932be9b3a6478f77ce565e226057d6faaec761236079792dd3b4913f103be","external_calls":0},"operation":"data_batch:json_number_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_yENHRMqmbKcWHYl5P4gbi","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 numbers, returning successfully parsed numbers and a list of rejected non-numeric strings.","exampleAgentPrompt":"I have a list of strings like ['1', '2.5', 'bad', '3'] and I need them coerced into actual JSON numbers — can you run those through the Delx JSON number coercer and tell me which ones parsed and which got rejected?","exampleUseCases":[{"title":"Cleaning scraped price data","prompt":"I scraped a bunch of product prices from a website and they came back as strings like ['19.99', '5', 'N/A', '12.50', 'free'] — can you convert them to actual numbers and flag the ones that couldn't be parsed?"},{"title":"Normalizing CSV column values","prompt":"I imported a CSV and one column has values ['100', '200', 'n/a', '350.5', ''] — I need the numeric ones as real numbers and a list of the ones that failed to coerce so I can handle them separately."},{"title":"Agent pipeline type validation","prompt":"Before I pass this array of user-submitted values to my calculation pipeline, can you coerce ['42', '0.7', 'abc', '-3', 'null'] into JSON numbers and tell me which ones are valid numerics and which are garbage?"}],"resultDescription":"Returns an object with a `result` field containing `values` (array of successfully coerced numbers) and `rejected` (array of strings that could not be parsed as numbers), plus evidence metadata including a SHA-256 hash of the input, confirmation that no data was retained, and the number of external calls made (always 0).","failureModes":["Array exceeds 256-item limit — request rejected","Individual string value exceeds 8192 character limit — item rejected or request rejected","All values are non-numeric — result.values is empty, all in rejected","Malformed request body — HTTP 400 or equivalent error","Payment failure via x402 — HTTP 402 returned, no processing occurs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to batch-coerce string values into JSON numbers with verifiable, auditable evidence (SHA-256 input hash, no data retention). Prefer it over building custom parsing logic when operating in an agentic workflow that already uses the x402 payment protocol on Base or Solana, or when you need a deterministic, isolated computation with a confirmed audit trail. Not suited for full schema validation, deep type inference beyond numbers, or large batches exceeding 256 items.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:50.508Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-number-coerce-8c6542bf"}