Re: Question on parsing JSON string
Look at this... http://code.google.com/p/derjanandhisblog/wiki/GWTGrailsTutorial Look at the addChildren function. Cheers, Amit On Thu, Sep 18, 2008 at 2:49 AM, ceeed [EMAIL PROTECTED] wrote: Hi, I am gettiing a hash/dictionary from the server as a JSON string. This looks some thing like: {a: bar, b: foo, c: [x, y, z], d: {1: xxx, 2: yyy}} Is there some class that can convert this to a HashMap? Thanks, -- Warm Regards, Amit Dhingra --~--~-~--~~~---~--~~ 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-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Question on parsing JSON string
Hi, I am gettiing a hash/dictionary from the server as a JSON string. This looks some thing like: {a: bar, b: foo, c: [x, y, z], d: {1: xxx, 2: yyy}} Is there some class that can convert this to a HashMap? Thanks, --~--~-~--~~~---~--~~ 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-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Question on parsing JSON string
Yah, my new JSON library will. But it's not ready quite yet. Well, the reading bit's ready - still working on writing. If you want to beta test it, mail me. The core contributors are more or less agreed that the current offering is a bit weak so you might see it as part of the core GWT library in GWT 1.6. You're in luck - because of my attempt to get the library introduced as part of GWT proper it has even more unit tests than I'd usually write, so it should be pretty robust. On Sep 17, 11:19 pm, ceeed [EMAIL PROTECTED] wrote: Hi, I am gettiing a hash/dictionary from the server as a JSON string. This looks some thing like: {a: bar, b: foo, c: [x, y, z], d: {1: xxx, 2: yyy}} Is there some class that can convert this to a HashMap? Thanks, --~--~-~--~~~---~--~~ 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-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---