On Sep 22, 2:10 pm, Ian Clarke <
ian.cla...@gmail.com> wrote:
> On Tue, Sep 22, 2009 at 3:58 PM, inder <
inder...@gmail.com> wrote:
> > Not in the current version of Gson, but Gson 1.4 has such a method:
> > Gson.toJsonTree() gives you a JsonElement tree corresponding to an
> > object.
>
> > You can wait for Gson 1.4 to be released (hopefully before the month
> > end) or build it yourself from the repository using Maven2.
>
> Exciting! Will you update the maven repository immediately upon its
> release?
We will update the maven repository that we host. But we will not
update the public maven repository (it is a somewhat tedious process
that I dont have cycles for. If someone could help here, we will
appreciate it).
> Is there a list of the significant changes/improvements (I assume you'll be
> addressing the pretty-printer stuff we discussed a while back)?
There are quite a few changes in this version: Gson has new methods to
output Json tree, deserialize from Json tree, an async parser API,
byte and collection array deserialization improvements (from 80KB to
11MB), etc.
We will not be directly addressing the pretty printing stuff, but you
can use call Gson.toJsonTree() and the navigate the tree to print it
nicely yourself. Sorry, we couldn't devote enough cycles to get it
right, so we didn't want to commit to a half-baked solution.
Inder