isagalaev / ijson

Iterative JSON parser with Pythonic interface
http://pypi.python.org/pypi/ijson/
Other
615 stars 134 forks source link

parse error #26

Closed tedx closed 9 years ago

tedx commented 9 years ago

What does the 'at <number' mean, line, byte offset? I'm parsing big json files and it would be nice if the error message would show some of the json prior to the error to make it easier to find/fix.

isagalaev commented 9 years ago

It is an offset.

I'm trying to keep code of the Python backend small and with minimal bookkeeping overhead, so I couldn't come up with a good way to maintain extended context for error reporting. If you can suggest any, feel free to open a pull request.