-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 They're not part of Pivot, but Google Gson and, for Scala, Lift's JSON lib[1], can both do this nicely.
Gson makes use of the gnarly "type-token" idiom to work around type erasure when unmarshalling things like List<Bean>, but the gnarliness is Java's fault, not Gson's. [1] This came out of the Lift webapp framework, but is standalone. On 01/27/2011 08:22 PM, Chris Bartlett wrote: > Vanio, > > Take a look at > http://svn.apache.org/repos/asf/pivot/trunk/core/test/org/apache/pivot/json/test/BindTest.java > > and the other related JSON test files > http://svn.apache.org/repos/asf/pivot/trunk/core/test/org/apache/pivot/json/test/ > > Chris > > On 28 January 2011 07:36, Vanio Meurer <[email protected] > <mailto:[email protected]>> wrote: > > > Hello, how I can parse a JSON to List<Bean>? > Or how I can get the List<Bean> with GetQuery? > I really tried a lot of ways, but I don't have success. > -- > View this message in context: > > http://apache-pivot-users.399431.n3.nabble.com/How-parse-a-JSON-to-List-Bean-tp2364779p2364779.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1CNXAACgkQ0GFaTS4nYxsxoQCfaWNcDpyauCDdz2xSWt+b+SWO 1BIAoJtgYksuz1BbyhEDoEc2IJAGFIzT =8fO3 -----END PGP SIGNATURE-----
