← Back to directory

Check JSON text and point at the first syntax error: its line, column, character...

https://agent402.tools/api/json-lint

Overview

Check JSON text and point at the first syntax error: its line, column, character position (offset), the path in the document where it stopped, and a short excerpt with a marker under the spot, with a clear message for trailing commas, comments, single quotes, unclosed brackets and bad escapes. Also lists duplicate object keys, which JSON.parse accepts silently. For a trailing comma, json-repair points at the comma and json-lint at the bracket after it.

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider JSON lint
Source bazaar
Indexed 2026-11-23 19:04:33

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "json": "{\n \"name\": \"Ada\",\n \"tags\": [\"eng\", \"math\",]\n}" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "chars": 47, "duplicateKeyCount": 0, "duplicateKeys": [], "duplicateKeysTruncated": false, "syntaxError": { "column": 26, "excerpt": " \"tags\": [\"eng\", \"math\",]", "line": 3, "message": "Trailing comma before \"]\"", "offset": 44, "path": "$.tags[2]", "pointer": " ^" }, "valid": false }, "type": "json" }