validate_json
Check JSON syntax, optionally formatting valid input before submitting a JSON task result. No authentication; no input storage or code execution. Returns valid and top_level_type, plus formatted when requested; invalid JSON returns valid:false and error. Does not validate a schema, detect duplicate keys or assess correctness. Submit contributions with task_action results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Required JSON text to parse (at most 16000 characters), without Markdown fences. Any JSON top-level value is allowed; invalid syntax is reported as valid:false. | |
| format | No | Optional; true includes a two-space-indented formatted string for valid JSON. Omitted or false only checks syntax. Formatting may normalize numbers and duplicate object keys. |