# Keyronne JSON Repair

> Keyronne JSON Repair is a paid API for AI agents from keyronne.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14, last successful call 2026-07-23).

Repairs malformed JSON text (from LLM output or other sources) into valid parsed JSON, returning the corrected value plus a log of all repairs applied.

## Facts

- Endpoint: POST https://keyronne.com/api/json-repair
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-23
- Success rate: 100% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/keyronne-json-repair-e82a64fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-FenKpp3zqnVGtn9nmFoB

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 keyronne-json-repair-e82a64fb -d '<json body>'
```

Example prompt: This JSON from the LLM response is broken — it has unquoted keys, single quotes, and a trailing comma: `{name: 'Ada', age: 36, tags: ['x',], active: True}` — can you repair it into valid parsed JSON and tell me what was fixed?

## When to prefer this

Choose this endpoint when processing LLM-generated output that almost-but-not-quite parses as JSON — especially when it contains markdown code fences, Python-style booleans (True/None), single or smart quotes, unquoted keys, trailing commas, inline comments, or is cut off mid-structure. Prefer it over writing custom regex fixes or using a generic JSON parser that will simply throw on malformed input.

## Known failure modes

- Input is so severely malformed that no repair heuristic can produce a valid JSON structure — returns an error or best-effort partial result
- Input is empty or missing the 'text' field — returns a 400-level error
- Input contains binary or non-text data that cannot be interpreted as JSON — repair fails
- Extremely long truncated JSON may close with incorrect structure inference

## How this service works

Repair malformed JSON text into valid parsed JSON: markdown code fences, single quotes, smart quotes, unquoted keys, trailing commas, comments, Python literals (True/None), raw newlines in strings, and truncated output (auto-closes strings, arrays and objects). Returns the parsed value plus a log of every repair applied. Built for LLM output that almost parses. POST a JSON body like: {"text":"```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"}

## Output

Returns the fully parsed JSON value (as a proper JSON object/array/primitive) and a detailed log listing every repair operation that was applied, such as quote normalization, removal of trailing commas, closure of truncated strings/arrays/objects, and conversion of Python literals.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The malformed JSON text to repair."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/keyronne-json-repair-e82a64fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from keyronne.com](https://www.zero.xyz/host/keyronne.com/llms.txt)
