Closed GoogleCodeExporter closed 9 years ago
I'm attaching the patch for the issue.
I suggest to serialize map's values based on actual class (value.getClass())
rather then parameter type.
In this case standalone map and field (as in hq4ever's example) will be
serialized in the same way.
Also this way we'll have more transparent way of serialization subclasses
inside the map.
Am I missing any use cases which will be broken?
Original comment by kulik.st...@gmail.com
on 10 Jan 2011 at 10:42
Attachments:
This should work with Gson 1.7.
Original comment by joel.leitch@gmail.com
on 13 Apr 2011 at 9:18
Fixed in GSON 2.0.
Original comment by limpbizkit
on 2 Oct 2011 at 3:18
Original issue reported on code.google.com by
hq4ever
on 6 Dec 2010 at 1:14Attachments: