# AveDaris JSON Repair

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

Repairs malformed JSON strings and returns a valid, parsed JSON object

## Facts

- Endpoint: POST https://api.avedaris.com/v1/paid/json-repair
- Price: $0.005/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-repair-16b5dc52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O1Xwlk0tY-tnzSDgA_OM0

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-repair-16b5dc52 -d '<json body>'
```

Example prompt: This JSON string came back from an API and it's broken — can you fix it so it's valid JSON? Here it is: {hello: 'world', missing_quote: true,}

## When to prefer this

Choose this endpoint when you have a string that is almost valid JSON but fails to parse due to common syntax errors like trailing commas, unquoted keys, missing brackets, or extra characters. It is ideal for cleaning up LLM-generated JSON, hand-edited config files, or API responses with minor formatting defects. Prefer this over manual regex fixes or writing custom parsers when you need a quick, reliable, pay-per-use repair with no infrastructure setup.

## Known failure modes

- Input is so severely malformed that no valid repair is possible — may return an error or best-guess structure
- Input is not JSON at all (e.g. plain prose or binary data) — repair may fail or produce nonsensical output
- Ambiguous JSON structures where multiple valid repairs exist — one interpretation chosen arbitrarily
- Extremely large inputs may be truncated or rejected
- Network or payment failure returns a 402 or 5xx 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

A JSON object containing a `result.repaired` field with the fully parsed and corrected JSON structure, ready to use programmatically without further parsing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Malformed JSON text to repair."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "repaired": {
    "hello": "world"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avedaris-json-repair-16b5dc52/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)
