The good thing about AutoBeanFactory is that you can also use on the backend to encode objects as JSON.
Did you check the official google docs on AutoBeans (http://code.google.com/p/google-web-toolkit/wiki/AutoBean)?
Another approach I have been using in my projects (GWTP) is Harald Pehl's piriti library (http://code.google.com/p/piriti/).
On Monday, May 21, 2012 2:08:00 PM UTC+2, Santosh wrote:
We have use GWT Platform with GWTP client and rest web services within
GUICE container. Rest service invocation from GWT client is done using
JSONPRequestbuilder.
I want to know which is the best JSON response string parsing
technique for GWT? - JSON to Java serialization/deserialization
After lot of search on google, I found out that we have these many
options.
a. GWT built in JSONParser parseStrict method which is called secured
and best way to go. But this may not be suitable for complex JSON
response string. Becuase you need to write lot of code to parse each
item in JSON response and convert to a Java object.
b. GWT AutobeanFactory approach - I dont know how best to use this? We
are using GWT 2.4, you do not have any complete example of using this
approach at all. Everywhere, people say its an approach but no where
we have detailed description on this. Few samples on google were from
gwt older versions which were changed a lot in GWT 2.4. Please
somebody share a good example with GWT 2.4 and Autobean factory
approach for JSON ser/deser...
c. JavaScript overlay types: People say it is not the secured way to
go. So I am bit hesitate whether we should use this or not.
Moreover, we are migrating from GWT to SmartGWT very soon. I hope, the
rest call services with these should continue to work even in SmartGWT
without any changes. (Because SmartGWT also comes with a predefined
format JSON rest support which we may not use as we already have built
these services in general).
Kindly advice asap.
Thanks
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TTEywqVq6FkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment