JSON

42 views
Skip to first unread message

Facundo Schwindt

unread,
Sep 20, 2011, 4:53:10 PM9/20/11
to google-we...@googlegroups.com
Hi Everyone.

Anyone knows which are the best option for JSON Serialization and Deserialization ?
Is only for JSON purpose !!

I was looking Piriti and RestyGWT..

I see that Piriti (http://code.google.com/p/piriti/wiki/GettingStarted) use aproximate 20 .jar  ( GIN 1.5Guice 3.0 , Totoe 0.2.4 )

RestyGWT seem to be similar to Piriti but i did not test it yet


Thanks
Facundo

karim duran

unread,
Sep 20, 2011, 7:21:08 PM9/20/11
to google-we...@googlegroups.com
Hi Facundo,

Did you try Google Gson :

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

Have a look, maybe it can help you.

Regards.

Karim Duran

2011/9/20 Facundo Schwindt <facu...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Sep 21, 2011, 5:01:25 AM9/21/11
to google-we...@googlegroups.com
On the client-side: JsonUtils.safeEval for parsing, with JS overlay classes, and new JSONObject(jso).toString() for serialization (unfortunately not that great for performance, as it creates bunch of temporary objects: one for each value in your objects) work well.

For better performance on the client-side, and/or if you also want server-side support, have a look at AutoBeans. Use GWT.create() on an AutoBeanFactory on the client-side, and an AutoBeanSource on the server-side, and the everything else can be shared between client-side and server-side.

Reply all
Reply to author
Forward
0 new messages