util_json_validate · Util JSON validate
read-onlyUse when you need to check that a JSON document fits a schema before acting on it: validates json against a JSON Schema subset. Returns the paid x402 request for your input (GET /util/json-validate, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Returns valid, every violation with its path, and the schema keywords it ignored. First call each day returns the data itself, free; later calls return the paid request.
Input schema
{
"type": "object",
"properties": {
"json": {
"type": "string",
"maxLength": 65536,
"description": "The document (JSON text; an object in a POST body is accepted too)"
},
"schema": {
"type": "string",
"maxLength": 65536,
"description": "JSON Schema (subset) as JSON text"
}
},
"required": [
"json",
"schema"
]
}