# Autonomy API Network JSON Repair

> Autonomy API Network JSON Repair is a paid API for AI agents from autonomy-api-network.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Repairs malformed JSON text and optionally validates the repaired result against a provided JSON Schema.

## Facts

- Endpoint: POST https://autonomy-api-network.onrender.com/v1/json-repair
- 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/autonomy-api-network-json-repair-b27983f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y435dc4JkGN6gNuLJzOwY

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 autonomy-api-network-json-repair-b27983f2 -d '<json body>'
```

Example prompt: This JSON I got back from a third-party API is malformed — can you repair it and validate it against my schema? Here's the broken text: '{name: "Alice", age: 30, tags: ["admin", "user"'

## When to prefer this

Use this endpoint when you have JSON-like text that is syntactically broken (missing brackets, trailing commas, unquoted keys, truncated responses, etc.) and need it fixed before processing. Especially useful when you also want to validate the repaired output against a known schema in a single step.

## Known failure modes

- Text is so corrupted it cannot be meaningfully repaired — returns error or empty result
- Invalid JSON Schema provided — validation step fails with schema parse error
- Empty or null input text — returns error indicating no content to repair
- Input is already valid JSON but schema validation fails — repaired JSON returned with validation errors listed

## How this service works

Repair malformed JSON and optionally validate it against JSON Schema.

## Output

Returns the repaired, well-formed JSON and optionally a validation report indicating whether it conforms to the provided JSON Schema, including any validation errors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "JSON-like text to repair"
  },
  "schema": {
   "type": "object",
   "description": "Optional JSON Schema"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "value": {
    "name": "Ada",
    "active": true
   },
   "changed": true,
   "validAgainstSchema": null
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/autonomy-api-network-json-repair-b27983f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from autonomy-api-network.onrender.com](https://www.zero.xyz/host/autonomy-api-network.onrender.com/llms.txt)
