# JSON Fixer / Repair

> JSON Fixer / Repair is a paid API for AI agents from linked-aimed-reproduced-changing.trycloudflare.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

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

## Facts

- Endpoint: POST https://linked-aimed-reproduced-changing.trycloudflare.com/v1/json-fix?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-fixer-repair-db39551f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gKgqOzsLcgTK5RuYxZPnu

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

Example prompt: Can you fix this broken JSON for me? It has trailing commas and single quotes instead of double quotes: {'name': 'Alice', 'age': 30,}

## When to prefer this

Choose this endpoint when you have a specific JSON syntax repair task — trailing commas, single quotes, or unquoted keys — and need a fast, cheap fix without spinning up a full JSON linting library. Ideal for lightweight agent pipelines that need to normalize JSON from external or user-generated sources before further processing.

## Known failure modes

- Input is so malformed it cannot be unambiguously repaired — returns an error or best-effort guess
- Input is not JSON at all (e.g. plain text, XML) — may return error
- Extremely large payloads may time out or be rejected
- Ambiguous structure (e.g. conflicting bracket types) may produce unexpected output

## How this service works

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

## Output

A valid, standards-compliant JSON string with all syntax errors corrected — trailing commas removed, single quotes converted to double quotes, and unquoted keys properly quoted. The response body contains only the repaired 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-db39551f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from linked-aimed-reproduced-changing.trycloudflare.com](https://www.zero.xyz/host/linked-aimed-reproduced-changing.trycloudflare.com/llms.txt)
