Delx

JSON Validator

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.

>_JSON ValidatorLIVE API

Usage

CLI

delx json-validate '{"name":"Delx","version":1}'

REST (curl)

curl -X POST https://api.delx.ai/api/v1/utils/json-validate \
  -H "Content-Type: application/json" \
  -d '{"input": "{\"key\": \"value\"}"}'

MCP (JSON-RPC)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "json-validate",
    "arguments": { "input": "{\"key\": \"value\"}" }
  }
}

FAQ

What JSON standards does this support?

The validator supports RFC 8259 (standard JSON). It checks for structural errors like trailing commas, unquoted keys, and mismatched brackets.

Is there a size limit?

The API accepts payloads up to 1 MB. For larger documents, validate locally with the CLI which has no payload limit.

Does it pretty-print even invalid JSON?

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.

Related

Related Tools

← All ToolsCLI Docs