In the user guide, on collection types, this is said:
----
(Deserialization)
Type collectionType = new TypeToken<Collection<Integer>>(){}.getType();
Collection<Integer> ints2 = gson.fromJson(collectionType, json);
ints2 is same as ints
----
Yet, gson.fromJson is most likely taking the String argument first, and
then the Type arguments.
Original issue reported on code.google.com by nuutti.k...@gmail.com on 26 Mar 2009 at 1:28
Original issue reported on code.google.com by
nuutti.k...@gmail.com
on 26 Mar 2009 at 1:28