{"slug":"x402-deepsense-stream-api-v1-json-repair-080f08","title":"Repair almost-JSON produced by LLMs","host":"x402.deepsense.stream","method":"POST","resource":"https://x402.deepsense.stream/api/v1/json/repair","category":"code","description":"Repair almost-JSON produced by LLMs: strips markdown code fences, normalises smart quotes, removes comments and trailing commas, then parses. Returns the parsed value plus the list of repairs applied, or a precise parse error. Pure computation, no upstream data.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":338,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"text":"```json\n{\"a\": 1,}\n```"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"text":{"description":"The JSON-like string to repair","type":"string"}},"required":["text"],"type":"object"},"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":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":338,"error":null}],"description_full":"Repair almost-JSON produced by LLMs: strips markdown code fences, normalises smart quotes, removes comments and trailing commas, then parses. Returns the parsed value plus the list of repairs applied, or a precise parse error. Pure computation, no upstream data.","last_updated":"2026-10-19T16:35:25.109Z","schemes":["exact"]}