← Back to directory

Turns messy LLM output into valid JSON: strips Markdown code fences and surround...

https://verifylite.hydratinghealingtouch.workers.dev/sanitize-json

Overview

Turns messy LLM output into valid JSON: strips Markdown code fences and surrounding prose, fixes trailing commas, single quotes, unquoted keys, comments, Python True/None, cut-off brackets, and stringified JSON. Optionally validates the result against a JSON Schema (draft 4 to 2020-12) and lists each error with its location. Returns the parsed data, the JSON text, and what was changed. Not charged if no JSON can be recovered or the input is invalid.

Protocol x402 (POST)
Price $0.0039
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider VerifyLite
Source bazaar
Indexed 2026-10-22 21:25:52

Health

Status healthy
Latency (p50) 1207ms
Uptime (30d) 97.0%
Reliability Score 83.5/100
Last Checked 2026-10-31 07:13:55
Last Healthy 2026-10-31 07:13:55
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "schema": { "properties": { "age": { "type": "integer" }, "name": { "type": "string" } }, "required": [ "name", "age" ], "type": "object" }, "text": "```json\n{'name': 'Ada', 'age': 36,}\n```" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "changed": true, "changes": [ "removed Markdown code fence", "repaired JSON syntax" ], "data": { "age": 36, "name": "Ada" }, "json": "{\"name\":\"Ada\",\"age\":36}", "ok": true, "repaired": true, "schemaCheck": { "errorCount": 0, "errors": [], "valid": true }, "tool": "fix_json", "type": "object" }, "type": "json" }