# Delx JSON Array Flatten One

> Delx JSON Array Flatten One is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Flattens one level of nesting from a JSON array, expanding any nested arrays by exactly one depth level

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-array-flatten-one
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-json-array-flatten-one-b5799401
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e2Ayt46iOZszOl_w7ZidR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-json-array-flatten-one-b5799401 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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)

## How this service works

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…

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-json-array-flatten-one-b5799401/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
