# Lordevo JSON Repair for LLM

> Lordevo JSON Repair for LLM is a paid API for AI agents from shop.lordevo.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Repairs malformed or LLM-generated JSON by fixing fences, quotes, commas, unquoted keys, and truncation, returning valid JSON and a list of problems found.

## Facts

- Endpoint: GET https://shop.lordevo.com/api/quick/json-repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lordevo-json-repair-for-llm-16d47bd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iaMuaGMPzvQsG0uqxYwZ8

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 lordevo-json-repair-for-llm-16d47bd1
```

Example prompt: The LLM returned a JSON blob with code fences, single quotes, and a trailing comma — can you run it through JSON repair and give me the fixed, valid JSON along with a list of what was wrong?

## When to prefer this

Choose this endpoint when you need to programmatically fix LLM-generated JSON that suffers from common LLM formatting errors like markdown code fences, Python boolean constants, smart quotes, trailing commas, unquoted keys, or truncation. Ideal for AI pipelines where model output must be reliably parsed as JSON before downstream processing. Prefer this over manual parsing heuristics or home-grown fixers when you need a maintained, enumerated list of what was actually repaired.

## Known failure modes

- Input JSON exceeds 1 MB limit — returns error
- Input is so malformed it cannot be meaningfully repaired — may return partially repaired result
- Missing required 'json' query parameter — returns validation error
- Network timeout for very large payloads

## How this service works

JSON repair for LLM output (fences, quotes, commas, truncation): Turns malformed or LLM-style JSON into valid JSON: removes code fences and leading text, fixes trailing commas, single or smart quotes, unquoted keys, comments, Python constants and truncated endings, and lists the problem types found.

## Output

Returns a JSON object containing: 'repaired' (the corrected JSON string), 'fixes' (array of strings naming each problem type that was corrected, e.g. 'trailing_comma', 'code_fence', 'single_quotes'), 'changed' (boolean indicating whether any changes were made), 'input_was_valid' (boolean indicating if the input was already valid), and 'tool' (identifier string).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "json"
     ],
     "properties": {
      "json": {
       "type": "string",
       "description": "JSON text, up to 1 MB (a JSON value is also accepted in a POST body or MCP arguments)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "tool",
      "repaired",
      "fixes"
     ],
     "properties": {
      "tool": {
       "type": "string"
      },
      "fixes": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "changed": {
       "type": "boolean"
      },
      "repaired": {
       "type": "string"
      },
      "input_was_valid": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

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