Hi Shaun,
Thanks for your kind remarks! I do plan to submit a patch after I add
more functionality to expand the use cases it supports.
For example, I am currently adding interfaces to allow default object
instances to deserialize *themselves* from either a JsonElement or a
JsonReader. In conjunction with this, it becomes helpful to have a
TypeSelector<Foo> (or TypeDispatcher) that determines what Class<?
extends Foo> should be created based on the contents of a
JsonReader/JsonElement (this would be helpful in your example, I
believe).
This is not the entirety of what I'm working on; there is a lot of
functionality that makes sense when you start going down this path. I
expect to have something in a few weeks that should be quite
interesting to Gson developers and users.
Thanks again,
Brandon
> --
> You received this message because you are subscribed to the Google Groups "google-gson" group.
> To post to this group, send email to
googl...@googlegroups.com.
> To unsubscribe from this group, send email to
google-gson...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/google-gson?hl=en.