{"uid":"cap_DxsBf_LXudnqMh24Sh8NG","slug":"delx-commerce-json-array-flatten-one-37af8e3a","name":"Delx Commerce — JSON Array Flatten One","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-array-flatten-one?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{},"maxItems":256,"description":"Items supplied to JSON Array Flatten One; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":4,"items":[1,2,3,4]},"schema":"delx/util-json-array-flatten-one/v1","status":"pass","evidence":{"retained":false,"input_sha256":"4c237b3e2f38b5034dc33d0cb077597a23d473b3abd1831621fd62a4aa33c5a0","external_calls":0},"operation":"data_batch:json_array_flatten_one"}},"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_GGXsIQPjF9hacA8RfV7rm","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":"Flattens a JSON array by one level of nesting, returning the merged items with a count and verifiable audit evidence.","exampleAgentPrompt":"Flatten this nested JSON array by one level: [[1,2],[3,4]] — I need a single flat list of all the items.","exampleUseCases":[{"title":"Normalizing API response arrays","prompt":"I'm getting a nested array back from another API — something like [[\"a\",\"b\"],[\"c\",\"d\"]] — can you flatten it one level so I have a plain list I can iterate over?"},{"title":"Preprocessing data pipeline input","prompt":"Before I run my batch job, I need to unwrap one layer of nesting from this array of arrays: [[10,20],[30,40],[50]] — flatten it one level for me."},{"title":"Cleaning up structured JSON for storage","prompt":"I have a JSON array with one extra layer of wrapping: [[{\"id\":1},{\"id\":2}],[{\"id\":3}]] — please flatten it by one level so it's a clean list of objects."}],"resultDescription":"Returns a JSON object containing the flattened array under `result.items`, the total item count under `result.count`, the operation schema label, a pass/fail status, and an evidence block including the SHA-256 hash of the input, a flag confirming no data was retained, and a count of zero external calls made.","failureModes":["Input array exceeds 256 items — request rejected","Malformed JSON body — parse error returned","Non-array value supplied for `items` field — validation error","Network timeout on the payment layer before execution"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use, verifiable one-level array flatten with no signup and cryptographic proof of non-retention. Ideal for AI agents running automated pipelines that need auditability and deterministic pricing in USDC. Prefer over general-purpose code execution when you want a simple, bounded utility with an immutable audit trail rather than running custom code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.910Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-array-flatten-one-37af8e3a"}