# agentshelf.syntexa.ch JSON Repair

> agentshelf.syntexa.ch JSON Repair is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Deterministically repairs malformed or broken JSON text and returns the fixed JSON along with a list of transforms applied

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-json-repair-4005a2be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LMvGFSEgwuDdUM93GR_5Y

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 agentshelf-syntexa-ch-json-repair-4005a2be -d '<json body>'
```

Example prompt: Can you fix this broken JSON for me and tell me exactly what was changed to repair it: {"name":"Alice","age":30,"city":"New York"

## When to prefer this

Choose this endpoint when you need deterministic, auditable JSON repair without involving an LLM — especially when you need to know exactly which transforms were applied. Prefer the free sandbox endpoint POST /v1/sandbox/json-repair first for testing; use this paid endpoint when you need guaranteed processing in production. Best suited for automated pipelines where reproducibility and a clear change log matter more than flexible interpretation.

## Known failure modes

- Input text is not repairable (too corrupted or not JSON-like at all)
- Input exceeds 100,000 character limit
- Empty string input rejected due to minLength constraint
- Payment of $0.002 USDC not fulfilled, resulting in 402 response
- Network timeout during processing

## How this service works

Call when an agent needs broken JSON repaired deterministically, with the list of transforms applied. No LLM. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/json-repair first.

## Output

Returns a repaired, valid JSON string along with a structured list of the specific transforms (edits) that were applied to fix the original broken input, enabling full auditability of what was changed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "```json\n{\"a\":1,}\n```"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Almost-JSON text. Fences, smart quotes, trailing commas, single quotes, and unquoted keys are repaired. Example: ```json\\n{\"a\":1,}\\n```"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-json-repair-4005a2be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
