Closed GoogleCodeExporter closed 9 years ago
When you use Gson.fromJson(json, type), it parses in lenient mode. Changing
this would break backwards compatibility.
You can work around this by calling Gson.getAdapter(type).fromJson(json) which
will do a strict parse.
Original comment by limpbizkit
on 11 Apr 2012 at 8:45
In such case it would be nice to have possibility to change lenient/strict
parse mode(by default let it be lenient mode). It looks not really good to hide
information about invalid JSON.
Original comment by mst...@gmail.com
on 12 Apr 2012 at 5:51
Original issue reported on code.google.com by
mst...@gmail.com
on 23 Mar 2012 at 9:11Attachments: