json_validate
Validate JSON text and pinpoint syntax errors with the exact line and column, returning the top-level shape on success.
Instructions
Check whether a string is valid JSON. On failure returns the parser message plus the computed line and column of the error. On success returns the top-level shape. Distinguishes valid-but-empty-object from invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON text to validate | |
| describeTopLevel | No | Include top-level keys or array length (default true) |