Closed GoogleCodeExporter closed 9 years ago
The empty string is not a valid JSON document. So strictly speaking, this is
working as it should. But I'm tempted to support an empty document if the
parser is lenient.
Original comment by limpbizkit
on 2 Jun 2011 at 8:55
I agree that it makes sense to only support an empty string if the parser is
lenient. That said, for the case of a non-lenient parser, I think it would be
a better developer experience to use syntaxError() and throw an IOException
rather than throw an EOFException.
Original comment by yan...@google.com
on 2 Jun 2011 at 9:07
EOFException subclasses IOException; I think you'll catch it either way.
Original comment by limpbizkit
on 29 Dec 2011 at 5:58
Original issue reported on code.google.com by
yan...@google.com
on 2 Jun 2011 at 4:10