Here’s what we need for JSON:<div dir="auto"><br></div><div dir="auto">A domain specific error reporter based on line and character.   We have jsonlint, which is generic.   We have JSON schema and Ajv which are structural error reporters.  We may be able to take the structural reports out of Ajv and narrow errors down to line and character using XPath like tools.</div><div dir="auto"><br></div><div dir="auto">I’m other words, we need a combined AST which includes both structure and line/character.   We should go hunting for a combination of jsonlint and JSON schema validators.</div><div dir="auto"><br></div><div dir="auto">When we were trying to get better error reports out of Ajv, Alex pointed out that an API can be superior to schema.   That has stuck with me.</div>