# agentshelf.syntexa.ch JSON Pretty-Print (4-space indent)

> agentshelf.syntexa.ch JSON Pretty-Print (4-space indent) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Reformats a raw JSON string with 4-space indentation (pretty-print) and returns the result as a formatted string.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-pretty-4?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-json-pretty-print-4-space-indent-7c3a6285
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XT81XUQ8OjyPJbfjU6qhr

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 agentshelf-syntexa-ch-json-pretty-print-4-space-indent-7c3a6285 -d '<json body>'
```

Example prompt: Can you reformat this JSON so it's readable with 4-space indentation? Here's the raw blob: {"name":"Alice","age":30,"items":[1,2,3]}

## When to prefer this

Use this endpoint when you need deterministic, offline JSON pretty-printing with exactly 4-space indentation and no external network calls. Prefer the free sandbox endpoint POST /v1/sandbox/json-pretty-4 first; fall back to this paid endpoint ($0.01 USDC) when the sandbox is unavailable or rate-limited. Choose this over general-purpose formatters when you need a guaranteed, stateless transformation with a fixed cost.

## Known failure modes

- Invalid or malformed JSON input causes a parse error response
- Empty string or whitespace-only input rejected due to minLength:1 constraint
- Input exceeding 100,000 characters rejected due to maxLength constraint
- Non-JSON text (plain string, XML, CSV) causes a parsing failure

## How this service works

Call when an agent needs JSON rewritten with the pretty-4 transform. No network. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/json-pretty-4 first.

## Output

Returns the input JSON string reformatted with 4-space indentation and newlines, making nested structures visually clear. The output is a prettified JSON string suitable for display, logging, or documentation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "{\"b\":1,\"a\":2}"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-json-pretty-print-4-space-indent-7c3a6285/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
