JSON repair for LLM output
$0.0021 USD per call Pay per call via x402, no signup
This call turns malformed or LLM-style JSON into valid JSON by removing code fences and leading text and by fixing trailing commas, single or smart quotes, unquoted keys, comments, Python constants, and truncated endings. The response lists the problem types found and returns the repaired JSON; input is json (POST for large input), with a 1 MB limit; the repair runs offline; GET and POST endpoints are listed.
x402: GET https://shop.lordevo.com/api/quick/json-repair?json=%60%60%60json%0A%7Bname:%20'Ada',%20%22tags%22:%20%5B%22x%22,%5D,%20 or POST the same fields as JSON to https://shop.lordevo.com/api/quick/json-repair · MCP tool json_repair at https://shop.lordevo.com/mcp
The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.
Example
The catalog's own example for this tool (illustrative sample values, not a live result).
Input
{
"json": "```json\n{name: 'Ada', \"tags\": [\"x\",], "
}Output
{
"tool": "json-repair",
"input_was_valid": false,
"changed": true,
"repaired": "{\"name\":\"Ada\",\"tags\":[\"x\"]}",
"fixes": [
"removed_code_fence",
"trailing_commas",
"single_quotes",
"unquoted_keys",
"truncated_input_closed"
],
"value": {
"name": "Ada",
"tags": [
"x"
]
}
}