Skip to content
Fourohtwo

Batcave JSON Doctor

batcave-x402-gateway.darriel9.workers.dev/v1/json-doctor

Batcave JSON Doctor: deterministic JSON repair plus optional structural schema validation without inventing missing values.

SolanaDown
POSThttps://batcave-x402-gateway.darriel9.workers.dev/v1/json-doctor

Uptime0.0% of 2 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://batcave-x402-gateway.darriel9.workers.dev/v1/json-doctor" \
  -d '{"text":"{\"name\":\"widget\",\"price\":12.5,}","job_id":"json-doctor-example-001","schema":{"type":"object","required":["name","price","sku"],"properties":{"sku":{"type":"string"},"name":{"type":"string"},"price":{"type":"number"}}}}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "text": "{\"name\":\"widget\",\"price\":12.5,}",
  "job_id": "json-doctor-example-001",
  "schema": {
    "type": "object",
    "required": [
      "name",
      "price",
      "sku"
    ],
    "properties": {
      "sku": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "price": {
        "type": "number"
      }
    }
  }
}