# Delx Commerce — JSON Pretty Printer

> Delx Commerce — JSON Pretty Printer 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).

Reformats and inspects serialized JSON text into a human-readable pretty-printed format with consistent indentation.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-pretty?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-pretty-printer-be7bc6c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uyqAUN4i_QxPlCjKKm0KW

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-pretty-printer-be7bc6c8 -d '<json body>'
```

Example prompt: Can you pretty-print this JSON for me so it's readable? Here's the raw text: {"agent":"delx","ready":true,"version":3}

## When to prefer this

Choose this endpoint when you need a quick, no-signup, pay-per-call JSON formatting operation with USDC micropayment via x402 protocol. Ideal for AI agents that need to display JSON readably without maintaining API credentials or subscriptions. Best when the caller already operates in a USDC/Base or Solana payment context and wants verifiable delivery.

## Known failure modes

- Invalid or malformed JSON input — the API may return an error or unparseable result if the input string is not valid JSON
- Empty input — submitting an empty json_text may result in an error response
- Extremely large JSON payloads may hit size or timeout limits
- Non-JSON text submitted as input will fail to parse and format correctly

## How this service works

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

## Output

Returns the input JSON text reformatted as a pretty-printed, indented multi-line string with consistent whitespace, making nested structures and key-value pairs easy to read. The response includes the formatted text and a schema identifier (delx/json-pretty/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json_text": {
   "type": "string",
   "description": "Serialized JSON text to inspect or reformat."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "{\n  \"agent\": \"delx\",\n  \"ready\": true\n}",
  "schema": "delx/json-pretty/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-pretty-printer-be7bc6c8/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)
