I like JSON very much.

It would be great to extend Java syntax to add JSON syntax to Java 8
or Java 10
then we would get JSON in GWT :)

I do not like to write code like

Map<String, Map<String, String>> map = new HashMap(){{
 put("key1", new HashMap(){{
  put("key1_1", "value");
 }});
}};

Following code looks much clear.

JSONObject o1 = { "key1" : { "key1_1" : "value" }};

I need such complex data structure in GWT app and I regret that I am
not able to use short JavaScript syntax in java code that would be
compiled to JavaScript.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to