# JSON Fixer / Linter

> JSON Fixer / Linter is a paid API for AI agents from over-arabia-specifically-luxury.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-quoted strings, unquoted keys) and returns valid, parseable JSON.

## Facts

- Endpoint: POST https://over-arabia-specifically-luxury.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-linter-faade51f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RwEJH708pXkeQluXBX95Z

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

Example prompt: This JSON won't parse — can you fix it for me? It has trailing commas and some keys aren't quoted: {name: 'Alice', age: 30, hobbies: ['reading', 'coding',]}

## When to prefer this

Choose this endpoint when you have syntactically broken JSON that fails standard parsers due to trailing commas, single-quoted strings, or unquoted keys, and you need a corrected, valid JSON string back immediately without any explanation or commentary. Best for developer tooling pipelines, CI checks, or agent workflows that need to normalize JSON on the fly.

## Known failure modes

- Input is so corrupted it cannot be parsed or inferred — returns an error or empty response
- Non-JSON input (e.g. plain text, XML) may produce unexpected output
- Very large JSON payloads may time out or be truncated
- Cloudflare tunnel may be unavailable, returning 502 or connection errors
- Payment of 0.005 USDC via x402 required; missing payment returns 402

## How this service works

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

## Output

Returns only the corrected, valid JSON with all syntax errors resolved — trailing commas removed, single quotes converted to double quotes, and unquoted keys properly quoted. No explanatory text, just the fixed 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-linter-faade51f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from over-arabia-specifically-luxury.trycloudflare.com](https://www.zero.xyz/host/over-arabia-specifically-luxury.trycloudflare.com/llms.txt)
