# JSON Lines Parse

> JSON Lines Parse 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).

Parses newline-delimited JSON (JSON Lines / JSONL) text into ordered, normalized values with counts and a versioned result contract

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-lines-parse
- 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/json-lines-parse-5bb53216
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GPJIsVz4zY8z5AXsAo33S

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 json-lines-parse-5bb53216 -d '<json body>'
```

Example prompt: Parse this JSON Lines text into ordered, normalized records and give me the line count and a versioned result: '{"id":1,"name":"Alice"}
{"id":2,"name":"Bob"}
{"id":3,"name":"Carol"}'

## When to prefer this

Use this endpoint when an agent needs to reliably parse, normalize, and count records from a JSONL (newline-delimited JSON) payload before passing structured data to a downstream tool with a strict contract. Prefer it over ad-hoc string splitting when you need a versioned, deterministic result with explicit validation findings. Ideal for agent pipelines where auditability and a stable result contract matter.

## Known failure modes

- Input text exceeds 8192 character limit — request rejected
- Completely unparseable input (not JSONL at all) — returns validation error with zero valid records
- Mixed valid/invalid lines — valid lines returned with findings noting malformed entries
- Empty input string — returns zero count with empty ordered values
- Payment failure via x402 — request not processed

## How this service works

JSON Lines Parse: JSON Lines Parse parses bounded newline-delimited JSON into ordered values from bounded caller-supplied values without an external provider. Call JSON Lines Parse 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 Lines Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…

## Output

Returns a versioned deterministic JSON object containing: ordered normalized values extracted from each JSON Line, a record count, any validation findings (e.g. malformed lines), and a versioned result contract identifier for reproducibility.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to JSON Lines Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 2,
   "items": [
    {
     "id": 1
    },
    {
     "id": 2
    }
   ]
  },
  "schema": "delx/util-json-lines-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "7c8b7ae6606b99a416fd3d8737d5c6b03c90c5a074ff9d25cbaf495aabdbaa39",
   "external_calls": 0
  },
  "operation": "data_batch:json_lines_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-lines-parse-5bb53216/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)
