ahausladen / JsonDataObjects

JSON parser for Delphi 2009 and newer
MIT License
414 stars 159 forks source link

Provide column/line numbers for errors #21

Closed EricGrange closed 8 years ago

EricGrange commented 8 years ago

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")