Subject: | format of syntax error message |
When trying to parse a JSON string I received the following error message:
syntax error at byte 3437620
There are a few things wrong with this:
1. It has no information identifying what generated the message. Was it
Perl, some module, etc.?
2. The byte offset appears to be beyond the end of the string, which was
loaded from a file with 207,028 bytes. If the string has been converted
into 2-byte Unicode characters, then that needs to be specified.
3. It would be more helpful if it dumped a fragment of the string where
the syntax error occurs.
I don't know if this is fixed in 0.14, as I didn't see a change log. (At
the moment I'm using a Win32 version of ActiveState's Perl, and thus
limited to their built packages.)