Repair malformed, invalid, or broken JSON-like text and return valid parseable JSON when r
Repair malformed, invalid, or broken JSON-like text and return valid parseable JSON when recoverable. Useful for fixing machine-generated JSON, API responses, missing quotes, formatting errors, trailing commas, and structured-data ingestion pipelines. Price: $0.003 USDC via x402 on Base.
3000 (raw units)
price
5
calls / 30d
4
unique payers
2026-09-07
updated
Provider
genesis.palsus2023.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x899Be41C39d88c97c264F91A95784707341047eC",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"input": "{\"name\":\"Ada\",\"active\":true,}"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"changed": true,
"repaired": {
"active": true,
"name": "Ada"
}
},
"type": "json"
}
},
"schema": {
"additionalProperties": true,
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"input": {
"description": "Malformed or broken JSON-like text to repair into valid parseable JSON when recoverable.",
"type": "string"
}
},
"required": [
"input"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://genesis.palsus2023.workers.dev/v1/repair_json" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://genesis.palsus2023.workers.dev/v1/repair_json");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://genesis.palsus2023.workers.dev/v1/repair_json")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/13167.json, and this resource appears in /discovery/resources and /discovery/search.