{"slug":"api-vextorium-com-reparar-json-pago-c464da","title":"Repair broken JSON, typical of LLM output","host":"api.vextorium.com","method":"POST","resource":"https://api.vextorium.com/reparar-json-pago","category":"code","description":"Repair broken JSON, typical of LLM output: strips ```json fences, comments and surrounding text, trailing commas, single quotes, unquoted keys, Python True/None and unclosed brackets. Returns the object and clean JSON and, if you pass a JSON Schema, whether it validates and why not.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":327,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"texto":"```json\n{name: 'Ana', 'edad': 30, activo: True, tags: ['a','b',],"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"esquema":{"description":"optional JSON Schema","type":"object"},"texto":{"type":"string"}},"required":["texto"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"json":{"type":["string","null"]},"objeto":{"properties":{"activo":{"type":["boolean","null"]},"edad":{"type":["number","null"]},"name":{"type":["string","null"]},"tags":{"items":{"type":["null","string"]},"type":["array","null"]}},"type":["object","null"]},"reparado":{"type":["boolean","null"]},"ya_era_valido":{"type":["boolean","null"]}},"type":["object","null"]},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":327,"error":null}],"description_full":"Repair broken JSON, typical of LLM output: strips ```json fences, comments and surrounding text, trailing commas, single quotes, unquoted keys, Python True/None and unclosed brackets. Returns the object and clean JSON and, if you pass a JSON Schema, whether it validates and why not.","last_updated":"2026-10-03T07:59:47.3Z","schemes":["exact"]}