{"slug":"agent402-tools-api-json-lint-e8142e","title":"Check JSON text and point at the first syntax error","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/json-lint","category":"code","description":"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 ","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":350,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:5042","eip155:57073","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"json":"{\n  \"name\": \"Ada\",\n  \"tags\": [\"eng\", \"math\",]\n}"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"json":{"description":"JSON text to check (at most 100,000 characters)","type":"string"}},"required":["json"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"chars":{"type":"number"},"duplicateKeyCount":{"type":"number"},"duplicateKeys":{"type":"array"},"duplicateKeysTruncated":{"type":"boolean"},"syntaxError":{"type":"object"},"valid":{"type":"boolean"}},"required":["valid","syntaxError","chars","duplicateKeyCount","duplicateKeys","duplicateKeysTruncated"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":370,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":351,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":350,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":324,"error":null}],"description_full":"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.","last_updated":"2026-11-23T16:26:52.274Z","schemes":["exact","upto"]}