Validate Json
validate_jsonValidate a JSON string (keyless, offline). Returns whether it is valid and, if not, the error message and the character position.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json": "{\"name\": \"John\", \"age\": 30}"
},
"name": "validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON text to validate. |