Check JSON text and point at the first syntax error: its line, column, character...
https://agent402.tools/api/json-lintOverview
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.