# ManyLives JSON Repair

> ManyLives JSON Repair is a paid API for AI agents from api.manylives.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Repairs malformed or broken JSON strings, returning the fixed parsed object along with a list of applied fixes and optional schema validation results

## Facts

- Endpoint: POST https://api.manylives.me/paid/json/repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/manylives-json-repair-5f16ffd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uevm0EzEMBc7sPmqX207A

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 manylives-json-repair-5f16ffd5 -d '<json body>'
```

Example prompt: Can you fix this broken JSON for me — it has unquoted keys and trailing commas and it's wrapped in a code fence: ```json
{name: 'Ada', tags: ['a','b',],}
```

## When to prefer this

Choose this endpoint when you have JSON output from an LLM or third-party API that is syntactically invalid — e.g. has trailing commas, unquoted keys, single quotes, code fences, or JavaScript-style comments — and you need a clean, parseable object without writing custom repair logic. Especially useful in agentic pipelines where AI-generated structured data needs to be reliably parsed downstream, or when you want to simultaneously validate the repaired result against a known JSON Schema.

## Known failure modes

- Input text exceeds 500,000 character limit — request rejected
- JSON is so severely malformed it cannot be repaired — returns repaired:false with issues listed
- Provided schema is itself invalid JSON Schema — schema validation may fail or be skipped
- Network or payment failure via x402 protocol — HTTP 402 returned requiring USDC payment

## How this service works

Pay-per-call tools for people building AI agents: live web search and page contents, point-in-time crypto market data and news for backtests (no lookahead), verifiable track records of 1,000 crypto strategies locked on the Base network, company profiles, quick AI and batch prices. Ask us to turn a public website into a JSON endpoint. Pay per call, no account, free trial.

## Output

Returns a JSON object containing: the repaired and parsed JSON value under the 'json' key, an array of human-readable fix descriptions (e.g. 'removed code fence', 'quoted keys', 'removed trailing commas'), a boolean 'repaired' flag, a boolean 'valid' flag, an array of remaining 'issues' if any, and optionally a 'schema_valid' boolean if a JSON Schema was provided for validation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "```json\n{name: 'Ada', tags: ['a','b',],}\n```"
   ],
   "description": "the broken JSON as a string (required, max 500,000 characters)"
  },
  "schema": {
   "type": "string",
   "description": "optional JSON Schema object to validate the repaired value"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "json": {
   "name": "Ada",
   "tags": [
    "a",
    "b"
   ]
  },
  "fixes": [
   "removed code fence",
   "quoted keys",
   "removed trailing commas"
  ],
  "valid": true,
  "issues": [],
  "repaired": true,
  "schema_valid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/manylives-json-repair-5f16ffd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.manylives.me](https://www.zero.xyz/host/api.manylives.me/llms.txt)
