# JSON Auto-Fix Service

> JSON Auto-Fix Service is a paid API for AI agents from pearl-valium-stickers-upc.trycloudflare.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Repairs malformed JSON by correcting trailing commas, single quotes, and unquoted keys, returning only valid JSON.

## Facts

- Endpoint: POST https://pearl-valium-stickers-upc.trycloudflare.com/v1/json-fix?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-auto-fix-service-21da1989
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vEEZXeDHnY_5QrZFfF0ix

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-auto-fix-service-21da1989 -d '<json body>'
```

Example prompt: Can you fix this broken JSON for me? It has trailing commas and single-quoted keys: {'name': 'Alice', 'age': 30,}

## When to prefer this

Choose this endpoint when you have a specific, concrete JSON repair task — especially trailing commas, single-quoted strings, or unquoted keys from JavaScript object literals or LLM outputs. It is purpose-built for JSON syntax correction and returns only valid JSON with no prose, making it ideal for automated pipelines where you need clean parseable output without additional post-processing.

## 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 or XML) — unpredictable output
- Ambiguous structure where multiple valid repairs exist — only one interpretation returned
- Network timeout on the Cloudflare tunnel if the host machine is offline

## How this service works

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

## Output

A corrected, valid JSON document with all syntax errors resolved — trailing commas removed, single quotes replaced with double quotes, and unquoted keys properly quoted. The response contains only the repaired JSON with no extra commentary.

## 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-auto-fix-service-21da1989/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pearl-valium-stickers-upc.trycloudflare.com](https://www.zero.xyz/host/pearl-valium-stickers-upc.trycloudflare.com/llms.txt)
