# JSON Fixer / Linter

> JSON Fixer / Linter is a paid API for AI agents from charges-handling-limit-tunes.trycloudflare.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-29).

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

## Facts

- Endpoint: POST https://charges-handling-limit-tunes.trycloudflare.com/v1/json-fix?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-fixer-linter-0dbf6a59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CgB_-j2jYkWv4FP3wTiMC

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

Example prompt: This JSON snippet has trailing commas and single-quoted strings — can you fix it so it's valid JSON I can parse?

## When to prefer this

Use this endpoint when you have JSON that is almost valid but has common syntax issues like trailing commas, single quotes instead of double quotes, or unquoted keys — especially JSON produced by LLMs, humans, or legacy systems. Prefer this over writing custom regex-based fixers or using a full JSON schema validator.

## Known failure modes

- Input is too malformed to reliably repair and returns an error
- Input is not JSON-like at all and cannot be fixed
- Ambiguous structure where the intended correction is unclear
- Network timeout if the Cloudflare tunnel is temporarily unavailable

## How this service works

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

## Output

A response containing only the corrected, syntactically valid JSON, with all issues such as trailing commas, single-quoted strings, and unquoted keys resolved.

## 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-0dbf6a59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from charges-handling-limit-tunes.trycloudflare.com](https://www.zero.xyz/host/charges-handling-limit-tunes.trycloudflare.com/llms.txt)
