# JSON Fixer / Repair

> JSON Fixer / Repair is a paid API for AI agents from dev-5090-box.tailfb4c1f.ts.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Repairs malformed JSON (trailing commas, single quotes, unquoted keys) and returns only valid, parseable JSON.

## Facts

- Endpoint: POST https://dev-5090-box.tailfb4c1f.ts.net/v1/json-fix?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-fixer-repair-2a73f1ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f04Oz9e4IoOaAEoTuGul7

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 json-fixer-repair-2a73f1ca -d '<json body>'
```

Example prompt: This JSON snippet has trailing commas and single quotes everywhere and won't parse — can you fix it and give me back valid JSON? Here it is: {'name': 'Alice', 'age': 30,}

## When to prefer this

Choose this endpoint when you have a JSON string with common syntax errors (trailing commas, single-quoted strings, unquoted keys) that you need repaired automatically without writing custom parsing logic. Ideal for pipelines that receive user-generated or hand-written JSON that is structurally close to valid but fails strict parsers. Not suitable for fully malformed or non-JSON input.

## Known failure modes

- Input is so malformed it cannot be unambiguously repaired — returns an error or best-effort partial fix
- Input is not JSON at all (e.g. plain text, XML) — endpoint may return an error or unexpected output
- Ambiguous structure where multiple valid repairs exist — result may not match original intent
- Network timeout or service unavailability on the Tailscale host

## How this service works

Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.

## Output

Returns only valid, parseable JSON with all syntax errors corrected — trailing commas removed, single quotes converted to double quotes, unquoted keys properly quoted. No explanation or wrapper, just the clean JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usage": {
   "type": "object"
  },
  "choices": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-fixer-repair-2a73f1ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dev-5090-box.tailfb4c1f.ts.net](https://www.zero.xyz/host/dev-5090-box.tailfb4c1f.ts.net/llms.txt)
