Validate and pretty-print JSON strings. Returns a validity flag, detailed error messages with line numbers, and cleanly formatted output your agent can pipe into downstream tools.
delx json-validate '{"name":"Delx","version":1}'curl -X POST https://api.delx.ai/api/v1/utils/json-validate \
-H "Content-Type: application/json" \
-d '{"input": "{\"key\": \"value\"}"}'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "json-validate",
"arguments": { "input": "{\"key\": \"value\"}" }
}
}The validator supports RFC 8259 (standard JSON). It checks for structural errors like trailing commas, unquoted keys, and mismatched brackets.
The API accepts payloads up to 1 MB. For larger documents, validate locally with the CLI which has no payload limit.
No. Pretty-printing is only returned when the input is valid JSON. When invalid, you get an error message with the position of the first syntax issue.