Provide column/line numbers for errors
Closed this issue · 0 comments
EricGrange commented
For instance https://github.com/bonecode/TBCEditor/issues/303 uses the objects, but when there is an error in the JSON, the exception is very generic, having a column/line number would help figure out what's wrong.
Minimally this would be for raw JSON syntax errors (like an unbalanced array), and ideally at the DOM level, so that the application that uses the DOM can provide meaningful error (like "field whatever line xxx should be a string")