How JSON Validation Works
Validation uses the browser's native JSON.parse(), which implements the RFC 8259 grammar strictly. The validator catches every common mistake: trailing commas after the last array element or object property, unquoted object keys, single-quoted strings, unescaped control characters inside strings, missing closing brackets, duplicate keys (technically allowed by the spec but flagged), and unterminated strings. When parsing fails, the error message includes the position offset which we convert to a line/column pair for easier debugging.