# Delx Commerce — JSON Lines Stringify

> Delx Commerce — JSON Lines Stringify is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts an array of JSON objects into a JSON Lines (NDJSON) formatted string, one object per line.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-lines-stringify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-json-lines-stringify-7dbec64e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aSdTokXcYstcYEkGPuKRz

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-commerce-json-lines-stringify-7dbec64e -d '<json body>'
```

Example prompt: Convert this array of JSON objects into JSON Lines format — one object per line — so I can use it as NDJSON: [{"id":1,"name":"Alice"},{"id":2,"name":"Bob"},{"id":3,"name":"Carol"}].

## When to prefer this

Use this endpoint when you need a verifiable, pay-per-use, no-signup utility to convert a bounded JSON array (up to 256 objects) into JSON Lines / NDJSON format in memory without data retention. Prefer it in agent workflows requiring cryptographic proof of processing (SHA-256 evidence) and no persistent storage of sensitive data. If you already have NDJSON libraries available locally, this is only advantageous for its verifiability guarantees and x402 micropayment compatibility.

## Known failure modes

- Input array exceeds 256 items — request rejected
- Individual objects exceed 128 properties — schema validation error
- Malformed or non-object array items — serialization error
- Payment failure via x402 — 402 response before processing
- Network timeout on POST — no result returned

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON Lines string (newline-delimited JSON, NDJSON) where each input object is serialized as a single line, along with the total line count, operation status, a SHA-256 hash of the input for verifiability, and confirmation that no data was retained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 128,
    "additionalProperties": true
   },
   "maxItems": 256,
   "description": "Items supplied to JSON Lines Stringify; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "text": "{\"id\":1}\n{\"id\":2}",
   "line_count": 2
  },
  "schema": "delx/util-json-lines-stringify/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "0e0bc9cb6b5f1b41ed89071cc8222f2bbc6b2c97af66c03cd0d24ac5102d86af",
   "external_calls": 0
  },
  "operation": "data_batch:json_lines_stringify"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-lines-stringify-7dbec64e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
