# AveDaris JSON Pretty-Printer

> AveDaris JSON Pretty-Printer is a paid API for AI agents from api.avedaris.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Formats a raw JSON string into deterministic, human-readable output with two-space indentation.

## Facts

- Endpoint: POST https://api.avedaris.com/v1/paid/json-pretty
- 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/avedaris-json-pretty-printer-3c73ff0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qyknrRxsELqmz5fxET7Oc

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 avedaris-json-pretty-printer-3c73ff0e -d '<json body>'
```

Example prompt: Can you pretty-print this JSON for me with two-space indentation: {"name":"Alice","age":30,"active":true}?

## When to prefer this

Choose this endpoint when you need deterministic, reproducible two-space JSON formatting as a paid micro-service, especially in agent pipelines that require consistent JSON normalization without running a local formatter. Prefer it over ad-hoc string manipulation when you need a guaranteed stable output format across heterogeneous environments.

## Known failure modes

- Input string is not valid JSON — likely returns a parse error or non-200 response
- Input exceeds 100,000 character limit — request rejected
- Empty input string — rejected by minLength:1 constraint
- Malformed request body missing the `input` field — validation error

## How this service works

AveDaris is the economic coordination layer for autonomous software: discover, route, evaluate, procure, verify, and learn across agent services.

## Output

Returns a JSON object with a `result.formatted` field containing the input JSON string pretty-printed with deterministic two-space indentation and newlines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 100000,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "formatted": "{\n  \"a\": 1\n}"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avedaris-json-pretty-printer-3c73ff0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.avedaris.com](https://www.zero.xyz/host/api.avedaris.com/llms.txt)
