-
3 Feb 2010 4:57 PM #1
JsonConverter does not decode JSON?
JsonConverter does not decode JSON?
When calling JsonConverter.decode(s), the JSON string s does not seem to be read correctly. Specifically, JsonConverter seems to discard the first two characters of value strings:
produces a Map with the expected structure but that looks like it comes from the JSON:Code:{"menu":[{"heading":"one","href":"one/"}]}
Looking at JsonConverter.java, it seems to be expecting some kind of type tag at the beginning of the string, but that does not conform to any JSON grammar I've seen.Code:{"menu":[{"heading":"e","href":"e/"}]}
-
9 Mar 2010 2:41 AM #2
Yes i have the same problem. Is this a bug or are we doing something wrong?
fGwNetworks.nl Rich Internet Application development
-
9 Mar 2010 2:48 AM #3
JsonConverter needs an own format. It should not be used in a general case. This kind of tag is needed to support any java dataformat you might want to support.
-
11 Mar 2010 3:16 AM #4
fGwNetworks.nl Rich Internet Application development
-
11 Mar 2010 3:19 AM #5
There is no buildin class for your usecase. GWT offers JSONObject you can use.
-
11 Mar 2010 7:52 AM #6


Reply With Quote