{
  "x402Version": 2,
  "id": 2818,
  "slug": "2818",
  "resource": "https://app.heinrichstech.com/v1/cdp/json-repair",
  "description": "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.",
  "type": "http",
  "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
    }
  ],
  "outputSchema": {
    "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"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "app.heinrichstech.com",
  "lastUpdated": "2026-09-01T19:07:47.833Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-01T19:07:47.487Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "app.heinrichstech.com",
    "manifest_name": "app.heinrichstech.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}