Fix broken JSON from LLMs
Fix broken JSON from LLMs: removes code fences and comments, fixes single quotes, bare keys, trailing commas, Python literals and cut-off endings. Optionally validates the result against your JSON Schema and lists errors.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
859 msmedian answer time
$0.002listed price per call
$0.002price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402-weblens-api-production.up.railway.app/v1/json-repair
| Category | Code and developer |
|---|---|
| Provider host | x402-weblens-api-production.up.railway.app |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.002 | 534 ms |
| 2026-11-25 | valid payment request | 402 | $0.002 | 931 ms |
| 2026-11-24 | valid payment request | 402 | $0.002 | 1285 ms |
| 2026-11-23 | valid payment request | 402 | $0.002 | 848 ms |
| 2026-11-22 | valid payment request | 402 | $0.002 | 865 ms |
| 2026-11-21 | valid payment request | 402 | $0.002 | 526 ms |
| 2026-11-20 | valid payment request | 402 | $0.002 | 859 ms |
| 2026-11-19 | valid payment request | 402 | $0.002 | 527 ms |
| 2026-11-18 | valid payment request | 402 | $0.002 | 867 ms |
| 2026-11-17 | valid payment request | 402 | $0.002 | 961 ms |
| 2026-11-16 | valid payment request | 402 | $0.002 | 956 ms |
| 2026-11-15 | valid payment request | 402 | $0.002 | 740 ms |
| 2026-11-14 | valid payment request | 402 | $0.002 | 1274 ms |
| 2026-11-13 | valid payment request | 402 | $0.002 | 1293 ms |
Example input (from the provider)
{
"body": {
"schema": {
"required": [
"name"
],
"type": "object"
},
"text": "{name: 'Ana', tags: ['a','b',], ok: True}"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"schema": {
"description": "Optional JSON Schema to validate against (no regex patterns)",
"type": "object"
},
"text": {
"description": "The broken JSON text",
"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": {
"properties": {
"errors": {
"type": "array"
},
"fixes": {
"type": "array"
},
"json": {},
"repaired": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"json"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}