Is this JSON valid — and does it have the keys you need?
validate_jsonChecks that text parses as JSON, and optionally that required keys are present with the right top-level types. Returns the specific violations, not just true/false. Checks required + types only — not full JSON Schema, and it says so rather than pretending. Use before feeding generated JSON into something that will fail on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON to validate. | |
| schema | No | Optional JSON Schema (as JSON text) — required[] and properties[].type are checked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||