BitBooth JSON Repair: take any almost-JSON string (LLM tool output, broken API response, e
BitBooth JSON Repair: take any almost-JSON string (LLM tool output, broken API response, etc.), fix the common errors (trailing commas, single quotes, unquoted keys, missing brackets), and optionally validate against a JSON Schema. Built for AI agents that wrap every tool call in defensive parsing. Pay 0.001 USDC per call, no API key, no subscription.
5000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-01
updated
Provider
app.heinrichstech.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xDa2F35d283c42dd60B965322394bc658a5c1769F",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "xrpl:0",
"payTo": "rfryheo6yzFdLWj8qUQtZc7zG9MKkBkUEy",
"asset": "XRP",
"amount": "5000",
"maxTimeoutSeconds": 600
},
{
"scheme": "exact",
"network": "xrpl:0",
"payTo": "rfryheo6yzFdLWj8qUQtZc7zG9MKkBkUEy",
"asset": "524C555344000000000000000000000000000000",
"amount": "0.005000",
"maxTimeoutSeconds": 600
},
{
"scheme": "exact",
"network": "xrpl:0",
"payTo": "rfryheo6yzFdLWj8qUQtZc7zG9MKkBkUEy",
"asset": "5553444300000000000000000000000000000000",
"amount": "0.005000",
"maxTimeoutSeconds": 600
},
{
"scheme": "exact",
"network": "stellar:pubnet",
"payTo": "GCB5WZT5VCBBATGMQMTB6TLUXD6KQC6N5ITRWK3CCP4J3YOCE45FA2GO",
"asset": "XLM",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "stellar:pubnet",
"payTo": "GCB5WZT5VCBBATGMQMTB6TLUXD6KQC6N5ITRWK3CCP4J3YOCE45FA2GO",
"asset": "USDC",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "onchain",
"network": "eip155:8453",
"payTo": "0xDa2F35d283c42dd60B965322394bc658a5c1769F",
"asset": "0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196",
"amount": "100000000000000",
"maxTimeoutSeconds": 300
},
{
"scheme": "onchain",
"network": "eip155:1440000",
"payTo": "0xDa2F35d283c42dd60B965322394bc658a5c1769F",
"asset": "XRP",
"amount": "400000000000000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "utility",
"discoverable": true,
"info": {
"input": {
"body": {
"malformed": "{name: 'alice', age: 30,}",
"schema": {
"properties": {
"age": {
"type": "number"
},
"name": {
"type": "string"
}
},
"required": [
"name",
"age"
],
"type": "object"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"ok": true,
"payment": {
"network": "eip155:8453",
"payer": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"transaction": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"repaired": {
"age": 30,
"name": "alice"
},
"service": "BitBooth /v1/cdp/json-repair",
"validatedAgainstSchema": true,
"validation": {
"valid": true
},
"wasModified": true
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"malformed": {
"description": "The broken JSON string to repair.",
"type": "string"
},
"schema": {
"description": "Optional JSON Schema to validate the repaired output against. AJV-compatible.",
"type": "object"
}
},
"required": [
"malformed"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"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"
},
"tags": [
"llm",
"json",
"validation",
"agent-dev"
]
}
}Use it
curl
curl "https://app.heinrichstech.com/v1/cdp/json-repair" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://app.heinrichstech.com/v1/cdp/json-repair");
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://app.heinrichstech.com/v1/cdp/json-repair")
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/2818.json, and this resource appears in /discovery/resources and /discovery/search.