Validate LLM/agent JSON output against a JSON Schema (2020-12 subset) and auto-repair typical errors: code fences, trailing commas, numbers/booleans as strings, wrong enum case, single value instead of array, null optionals, extra or mis-cased keys, missing defaults. Returns errors, repaired JSON and fixes. POST recommended.
$0.001 USDC / callGET · POSTx402 V2 · eip155:8453Agent builder tools
https://forge-tools.dentreprise.workers.dev/api/json-schema-validate?data=%7B%22age%22%3A+%2242%22%7D
schema required — JSON Schema
data required — JSON value or string to check
repair — true (default) / false
{
"schema": {
"type": "object",
"properties": {
"age": {
"type": "integer"
}
},
"required": [
"age"
]
},
"data": "{\"age\": \"42\"}"
}{
"valid": false,
"errors": [
{
"path": "$.age",
"msg": "expected integer, got string"
}
],
"repaired": {
"age": 42
},
"repaired_valid": true,
"related_tools": [
{
"route": "/api/openapi-lint",
"url": "https://forge-tools.dentreprise.workers.dev/api/openapi-lint",
"price": "$0.002",
"what": "OpenAPI linter for agent readiness"
},
{
"route": "/api/a2a-agent-card",
"url": "https://forge-tools.dentreprise.workers.dev/api/a2a-agent-card",
"price": "$0.002",
"what": "A2A Agent Card validator and generator (A2A 1"
}
],
"catalog": "https://agent-hub.dentreprise.workers.dev/catalog.json"
}