Validate and format JSON
check_jsonStrictly validate JSON and report the exact line and column of the first error with a plain explanation, plus duplicate-key warnings and structure stats. Optionally pretty-print or minify without changing any value (big numbers keep full precision). Use this before claiming JSON is valid or when locating a syntax error in long JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| format | No | Return the formatted JSON. | |
| indent | No | Spaces per level (0 = minify) or "tab". | |
| sort_keys | No |