Json · Repair
Purpose: fix broken or LLM-mangled JSON and optionally validate it against a schema. Repair broken JSON from LLM output (code fences, prose, single quotes, unquoted keys, comments, trailing/missing commas, Python True/None, NaN, truncated output) and optionally validate + coerce it against a JSON Schema (type, required, properties, items, enum, min/max, pattern, $ref, anyOf/oneOf). Returns value, compact json, list of fixes and schema errors. POST JSON body {text, schema?}. Failed calls (HTTP 4xx/5xx) are not charged.
POST https://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/json/repair
0.003 USDC on Base · payTo 0x174897b2c5B133feB08A8FB90856B08F9fce8647
Status: verified · payable
Settlement: via OMNIGATE (https://omnigate.scriptmasterlabs.com) — seller opted in; receipt token per settlement; 0.005 USDC fee inside settlement, waived inside the daily budget
Payment routes
{
"text": "```json\n{name: 'Bob', age: '42', tags: ['a',],}\n```",
"schema": {
"type": "object",
"required": [
"name",
"age"
],
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "integer"
}
}
}
}{
"ok": true,
"repaired": true,
"fixes": [
"stripped markdown code fence",
"quoted unquoted keys",
"converted single-quoted strings",
"removed extra/trailing commas"
],
"value": {
"name": "Bob",
"age": 42,
"tags": [
"a"
]
},
"json": "{\"name\":\"Bob\",\"age\":42,\"tags\":[\"a\"]}",
"schema": {
"valid": true,
"errors": [],
"validBeforeCoercion": false,
"coercions": [
"$.age: string -> number"
]
}
}