Closed GoogleCodeExporter closed 9 years ago
Unfortunately, doesnotwork.json is not valid JSON. There is a trailing comma in
the "main" array which causes Firefox's built-in strict JSON parser to throw an
"unexpected character" error (JSON is not JavaScript, where this would be
allowed).
I had been meaning a long time ago to replace that parser with a more forgiving
one that would also display those sorts of syntax errors nicely, but time was
against me.
Original comment by W.Elwoo...@gmail.com
on 11 Nov 2013 at 9:35
Thanks a lot for your quick feedback. As follow-up to your comment, I think
that ensuring strict JSON conformance is a nice feature, not a bug, therefore
you should keep using Firefox built-in parser, IMHO.
However, would it be possible to modify the current behavior, that is,
JSONovich silently ignoring a file which is not strictly conforming to JSON
standards? For example, JSONovich could simply produce as output the Firefox
console error, instead. I think this would add a great feature: detecting
syntax errors.
Thanks in advance for your attention.
Original comment by davidbou...@gmail.com
on 12 Nov 2013 at 8:49
Original issue reported on code.google.com by
davidbou...@gmail.com
on 11 Nov 2013 at 8:53Attachments: