Validate a JSON value against a JSON Schema and coerce common LLM-output mistakes (numbers
Validate a JSON value against a JSON Schema and coerce common LLM-output mistakes (numbers as strings, stringified booleans, scalars where arrays are expected, missing defaults, extra properties). Returns the coerced value plus a structured error report. Built for cleaning up LLM tool-call arguments and structured outputs. POST a JSON body like: {"schema":{"type":"object","required":["name","age"],"properties":{"name":{"type":"string"},"age":{"type":"integer"}}},"data":{"name":"Ada","age":"36"}}
1000 (raw units)
price
2
calls / 30d
2
unique payers
2026-09-08
updated
Provider
keyronne.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"data": {
"age": "36",
"name": "Ada"
},
"schema": {
"properties": {
"age": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"name",
"age"
],
"type": "object"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"errors": [],
"valid": true,
"value": {
"age": 36,
"name": "Ada"
},
"warnings": [
{
"message": "coerced string \"36\" to integer",
"path": "$.age"
}
]
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"coerce": {
"default": true,
"description": "Attempt type coercion and default-filling before validating.",
"type": "boolean"
},
"data": {
"description": "The candidate JSON value to validate and coerce."
},
"schema": {
"description": "JSON Schema (draft-07 style subset: type, properties, required, items, enum, const, additionalProperties, min/max constraints, pattern, default).",
"type": "object"
}
},
"required": [
"schema",
"data"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"type": "object"
},
"output": {
"properties": {
"errors": {
"items": {
"properties": {
"message": {
"type": "string"
},
"path": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"valid": {
"type": "boolean"
},
"value": {
"description": "The (possibly coerced) value."
},
"warnings": {
"items": {
"properties": {
"message": {
"type": "string"
},
"path": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://keyronne.com/api/validate-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://keyronne.com/api/validate-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://keyronne.com/api/validate-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/815.json, and this resource appears in /discovery/resources and /discovery/search.