-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

aappddeevv wrote:
> I have some properties on a skin that need to be translated from json syntax 
> to an object. Pivot seems to have a few translators for colors and paints for 
> its needs.
> 
> However, I have some other structures to convert.
> 
> What recommendation do people have for converting json syntax to an object? 
> Should I grab a library? If so, any suggestions on which one?

I've had good experiences with Google's Gson:

http://code.google.com/p/google-gson/

though I don't know if it would be suitable here.  It has some nice
features, like being able to turn [1,2,3,4,5] into a
java.util.List<Integer>.  It can also do things like turn
[{'x':1},{'x':2},{'x':3},{'x':4},{'x':5}] into a List<Foo>, if you have

class Foo {
    int x;
}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwt8s4ACgkQ5IyIbnMUeTvMNgCfZ3XypqFQ1oymgPPHj/co3V95
Lp4AoKlUu7quASTbkod9WF63m53BD0eM
=2l5G
-----END PGP SIGNATURE-----

Reply via email to