JSON issue with GWT

39 views
Skip to first unread message

anand jain

unread,
Oct 8, 2011, 4:17:23 AM10/8/11
to Google Web Toolkit
I am making a DTO (JSON fomat). In that if my method returns a List,
then I am unable to get that List elements from JS0N string. In JSON
string, I can see the elements but unable to fetch them.

Can anybody help me?

Patrick Tucker

unread,
Oct 9, 2011, 10:51:21 AM10/9/11
to Google Web Toolkit
Did you look at JsArray or JsArrayString?

anand jain

unread,
Oct 9, 2011, 3:28:19 PM10/9/11
to google-we...@googlegroups.com
I have no idea..could you please tell me how to use it?

--
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.


Konstantin Zolotarev

unread,
Oct 9, 2011, 11:53:04 PM10/9/11
to google-we...@googlegroups.com
JsArray<YourModel> modelsList = JsonUtils.safeEval(yourJsonString);

And then you cuold use JsArray to get any model you need.
Reply all
Reply to author
Forward
0 new messages