# AgentShelf JSON Pretty-2 Formatter

> AgentShelf JSON Pretty-2 Formatter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-24).

Reformats a JSON string using the 'pretty-2' transform (2-space indented pretty-printing) and returns the result as formatted JSON text.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-pretty-2?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-json-pretty-2-formatter-08a75064
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BtN8g-fg_3GROD46yk14-

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-json-pretty-2-formatter-08a75064 -d '<json body>'
```

Example prompt: Can you pretty-print this JSON for me using 2-space indentation? Here's the raw text: {"name":"Alice","age":30,"roles":["admin","user"]}

## When to prefer this

Choose this endpoint when you specifically need 2-space indented pretty-printing of JSON and want a guaranteed fixed cost of $0.009 USDC per call with no network calls or LLM involvement. Prefer the free sandbox endpoint POST /v1/sandbox/json-pretty-2 first if available; use this paid endpoint when the sandbox is unavailable or quota is exhausted. Use this over general-purpose formatters when you need deterministic, offline JSON formatting without side effects.

## Known failure modes

- Invalid or malformed JSON input causes a parse error and no output is returned
- Input text exceeding 100,000 characters is rejected
- Empty string input is rejected (minLength: 1)
- Non-JSON text input (plain text, XML, CSV) may fail or produce unexpected output

## How this service works

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

## Output

Returns the input JSON string reformatted with 2-space indentation (pretty-2 style), making nested structures human-readable. The output is a well-formatted JSON text string with consistent indentation applied throughout.

## 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-json-pretty-2-formatter-08a75064/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)
