validate_json
Validates JSON text against RFC 8259. Returns ok status with parsed value or error details including byte position.
Instructions
Strict-mode RFC 8259 validator. Returns ok=true and the parsed value if the input is valid JSON; otherwise returns ok=false with a precise byte position and human-readable message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON text to validate. |