v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute json-validator evaluator
Validate JSON syntax
Request Body:
- input.text (string, required): The text to validate as JSON
- config.enable_schema_validation (bool, optional): Enable JSON schema validation
- config.schema_string (string, optional): JSON schema to validate against
post/v2/evaluators/json-validator/execute
Request body
Example request
{
"config": {
"enable_schema_validation": true,
"schema_string": "{}"
},
"input": {
"text": "{\"name\": \"John\", \"age\": 30}"
}
}Response
OK
Example response
{
"is_valid_json": true
}