# JSON Fixer / Repair

> JSON Fixer / Repair is a paid API for AI agents from biz-integral-pull-earrings.trycloudflare.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Repairs malformed JSON by fixing common syntax errors such as trailing commas, single quotes, and unquoted keys, returning valid JSON.

## Facts

- Endpoint: POST https://biz-integral-pull-earrings.trycloudflare.com/v1/json-fix?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-fixer-repair-ab547bd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YkVdYk1fSNqUdYB3WSKDm

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-ab547bd5 -d '<json body>'
```

Example prompt: Can you fix this JSON for me — it has trailing commas and single quotes and won't parse: {'name': 'Alice', 'age': 30,}

## When to prefer this

Choose this endpoint when you have JSON that is syntactically invalid due to common human or LLM-introduced errors like trailing commas, single-quoted strings, or unquoted keys, and you need a fast, cheap ($0.005/call) programmatic fix without writing custom parsing logic. Avoid if the JSON is structurally corrupted beyond simple syntax issues.

## Known failure modes

- JSON is too structurally broken to repair (e.g. mismatched brackets) — may return an error or best-effort partial fix
- Input is not JSON at all — endpoint may fail or return unexpected output
- Ambiguous syntax may be repaired incorrectly, changing intended semantics
- Service unavailable if Cloudflare Tunnel goes offline (ephemeral URL)

## How this service works

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

## Output

Returns a valid, fully-parsed JSON object with all syntax errors corrected — trailing commas removed, single quotes replaced with double quotes, and unquoted keys properly quoted — ready to parse without further modification.

## 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-ab547bd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from biz-integral-pull-earrings.trycloudflare.com](https://www.zero.xyz/host/biz-integral-pull-earrings.trycloudflare.com/llms.txt)
