# Halowerk JSON Repair

> Halowerk JSON Repair is a paid API for AI agents from tools.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Fixes common malformed JSON from LLM outputs and external systems, returning the parsed object and a detailed repair log

## Facts

- Endpoint: POST https://tools.halowerk.com/v1/json/repair?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-json-repair-331e9d29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nplHLO1kvZwsYatGvKzSp

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 halowerk-json-repair-331e9d29 -d '<json body>'
```

Example prompt: This JSON came back from the AI pipeline and it's broken — can you repair it? It has trailing commas, single quotes around strings, and a NaN value somewhere. Here it is: {name: 'Alice', score: NaN, tags: ['a', 'b',]}

## When to prefer this

Choose this endpoint when you need to reliably parse JSON that originated from LLM outputs or legacy systems and may contain any of the well-known LLM JSON failure modes: markdown fences, trailing commas, single quotes, unquoted keys, JS comments, typographic quotes, invisible characters, missing brackets, NaN, or Infinity. Prefer it over a plain JSON parser when you need an audit trail of exactly what was repaired.

## Known failure modes

- JSON is too severely malformed to recover — returns error with description
- Input is not JSON-like at all (e.g. plain text or binary) — returns parse failure
- Nested or recursive structures beyond processing depth — may return partial result
- Network timeout on large payloads

## How this service works

Repariert die typischen Fehler aus Sprachmodell-Ausgaben und Fremdsystemen: Markdown-Zaun, haengende Kommas, einfache Anfuehrungszeichen, unquotierte Schluessel, Kommentare, typografische Anfuehrungszeichen, unsichtbare Zeichen, fehlende Klammern, NaN und Infinity. Liefert das geparste Objekt und ein Protokoll jeder einzelnen Reparatur.

## Output

Returns the successfully parsed JSON object along with a structured repair log listing each individual fix applied (e.g. 'removed trailing comma at position 42', 'replaced single quotes with double quotes'), enabling full auditability of what was changed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Der fehlerhafte JSON-Text"
  }
 }
}
```

## More

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