# JSON Fixer / Linter

> JSON Fixer / Linter is a paid API for AI agents from released-mph-process-lib.trycloudflare.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

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

## Facts

- Endpoint: POST https://released-mph-process-lib.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-linter-f32a9bf9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_smSHfaRHNPIP-yHv73ikq

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

Example prompt: This JSON snippet has trailing commas and single quotes around the keys — can you fix it so it's valid and parseable? Here it is: {'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 authoring mistakes such as trailing commas, single-quoted strings, or unquoted object keys, and you need a clean, valid JSON document returned without additional explanation or processing. It is ideal for pipeline steps where downstream code requires strict JSON compliance.

## Known failure modes

- Input is so malformed it cannot be parsed or inferred — returns an error
- Input is not JSON-like at all (plain text, XML, CSV) — may return error or unexpected output
- Ambiguous structure where the repair is non-deterministic — may make incorrect assumptions
- Empty or null input — likely returns an error or empty object

## 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 replaced with double quotes, unquoted keys properly quoted. Only the corrected JSON is returned, no additional explanation.

## 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-f32a9bf9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from released-mph-process-lib.trycloudflare.com](https://www.zero.xyz/host/released-mph-process-lib.trycloudflare.com/llms.txt)
