Closed GoogleCodeExporter closed 9 years ago
Thanks for the detailed bug report and the suggestions to improve the grammar.
2) can not be done since Gson 1.4 allows multiple JSON objects on the stream.
So, in your example, it should
return 3 objects: empty JsonObject(), JsonPrimitive(12), JsonPrimitive(23)
Original comment by inder123
on 23 Sep 2009 at 6:59
Just realized that the 2 will fail to parse since it is not a valid JSON.
Gson stops at matching {} and doesn't look any further.
If you were using JsonParserAsync (in 1.4) you will be able to parse "{} 12 23"
into what I said above.
Original comment by inder123
on 23 Sep 2009 at 7:32
This is working as we intended it to work.
Note: your use case #1 will return a JsonNull object now. Not sure if this is
new
after the 1.4 release.
Original comment by joel.leitch@gmail.com
on 23 Sep 2009 at 7:34
Original issue reported on code.google.com by
tazija@gmail.com
on 4 Apr 2009 at 12:19