Closed GoogleCodeExporter closed 9 years ago
Low priority. I'm not a fan of the requested behavior.
Original comment by limpbizkit
on 18 Mar 2012 at 5:23
Then there's another way to deserialize fields with null value? I'm triying to
deserialize a field expecting a string but if it's null it crashes.
Original comment by nagash...@gmail.com
on 20 Mar 2012 at 1:29
We fixed it by allowing you to register a custom type adapter for strings. In
this case your type adapter would read in the empty string and write out null,
and vice versa.
Original comment by limpbizkit
on 1 Jul 2012 at 5:58
I am using gson-2.2.2.jar. is it solved in release 2.2.2? I added string custom
type adapter. It just calls serialize method for non NULL strings. I also build
Gson object using serializeNulls() call. It does not call serialize for NULL
string object fields.
Original comment by vinod.el...@gmail.com
on 29 Oct 2012 at 9:31
Original issue reported on code.google.com by
a...@matan.name
on 28 Feb 2012 at 5:48