Util JSON validate
util_json_validateUse when you must check that a JSON document fits a schema before acting on it: validates json against a JSON Schema subset. Returns the exact paid x402 request for your input (GET /util/json-validate, $0.001 per call), with the response schema and an example; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The document (JSON text; an object in a POST body is accepted too) | |
| schema | Yes | JSON Schema (subset) as JSON text |