{"uid":"cap_e2Ayt46iOZszOl_w7ZidR","slug":"delx-json-array-flatten-one-b5799401","name":"Delx JSON Array Flatten One","description":"JSON Array Flatten One: JSON Array Flatten One flattens exactly one nesting level from a JSON array from bounded caller-supplied values without an external provider. Call JSON Array Flatten One 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 Array Flatten One as versioned deterministic JSON. Price: $0.001 USDC via…","url":"https://api.delx.ai/api/v1/x402/json-array-flatten-one","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_EYrjBad_OMUg9FBWtiyGE","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 one level of nesting from a JSON array, expanding any nested arrays by exactly one depth level","exampleAgentPrompt":"I have this nested array [[1,2],[3,4]] and I need you to flatten it by one level so I get [1,2,3,4] — can you do that?","exampleUseCases":[{"title":"Normalize paginated API results","prompt":"I fetched multiple pages of results and now I have an array of arrays like [[item1,item2],[item3,item4]] — can you flatten it one level so I have a single list I can iterate over?"},{"title":"Unwrap grouped batch payloads","prompt":"My pipeline produced grouped chunks like [[a,b,c],[d,e,f]] and I need to collapse them into one flat array before I POST them — flatten it one level for me."},{"title":"Prepare nested category items for processing","prompt":"I have category items stored as nested lists, each category is its own sub-array inside a parent array. Flatten it one level so all the items are in a single list I can process one by one."}],"resultDescription":"Returns a JSON object with the flattened array under 'result.items', the count of resulting items in 'result.count', a status of 'pass', an operation label 'data_batch:json_array_flatten_one', and an evidence block confirming no data retention, no external calls, and a SHA-256 hash of the input.","failureModes":["Array exceeds 256-item limit — request rejected","Input 'items' field missing or not an array — validation error","Malformed JSON body — parse error","Already-flat array passed in — returns same array unchanged (not an error but may not be useful)"],"whenToPreferThis":"Choose this endpoint when you need exactly one level of array nesting removed — not a full recursive deep-flatten. Ideal when your agent accumulates paginated or chunked results as an array-of-arrays and needs a flat list for downstream iteration, batch POSTing, or mapping. Prefer this over recursive flatten endpoints when preserving sub-arrays nested two or more levels deep is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:32.073Z","isFirstParty":false}