Closed GoogleCodeExporter closed 9 years ago
Please assume that the map which I'm using stores the different types of object
so I
really cannot use the generics.
I guess and this is not supported by gson.
If not then also please let me know when will it be available and provide the
solution for above.
thanks,
Lee
Original comment by leenabo...@gmail.com
on 7 Jul 2009 at 6:26
Right now this is not supported by Gson. The JSON output does not contain type
information in the output so we are unable to deserialize the objects back into
a map
form.
For now, I do not see us adding this feature to Gson; however, you should be
able to
write your own custom serializer and deserializer to drop type information into
your
output so that you will be able to serialize the value back into Java.
Original comment by joel.leitch@gmail.com
on 23 Sep 2009 at 6:52
Original issue reported on code.google.com by
leenabo...@gmail.com
on 7 Jul 2009 at 6:21