Json Repair
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.
POST https://x402-weblens-api-production.up.railway.app/v1/json-repair
0.002 USDC on Base · payTo 0x02DDECd0378e8d08f4f5D019AB27f752B2b2dD6a
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"schema": {
"required": [
"name"
],
"type": "object"
},
"text": "{name: 'Ana', tags: ['a','b',], ok: True}"
}{
"errors": [],
"fixes": [
"quoted bare keys",
"single quotes -> double quotes",
"removed trailing commas"
],
"json": {
"name": "Ana",
"ok": true,
"tags": [
"a",
"b"
]
},
"repaired": true,
"valid": true
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | 71 / 100 · breakdown |
|---|---|
| Probe uptime (30d) | 100.0% over 1 probes · daily |
| Avg 402 latency | 717 ms |
| Paid calls (30d, on-chain) | 6 calls · 5 buyers · shared price cohort of 8 |
| Facilitator-reported (30d) | 1 calls · 1 payers (CDP Bazaar) |
How to call
POST https://x402-weblens-api-production.up.railway.app/v1/json-repair · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The broken JSON text"
},
"schema": {
"type": "object",
"description": "Optional JSON Schema to validate against (no regex patterns)"
}
},
"required": [
"text"
]
}Output schema
{
"type": "object",
"properties": {
"repaired": {
"type": "boolean"
},
"fixes": {
"type": "array"
},
"json": {},
"valid": {
"type": [
"boolean",
"null"
]
},
"errors": {
"type": "array"
}
},
"required": [
"json"
]
}curl -i -X POST 'https://x402-weblens-api-production.up.railway.app/v1/json-repair' \
-H 'content-type: application/json' -d '{"text":"{name: '\''Ana'\'', tags: ['\''a'\'','\''b'\'',], ok: True}","schema":{"type":"object","required":["name"]}}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs