Discussion:
Creating Key-Value Pair Javascript Object Using Java
Vinod Kumar
2018-05-28 09:35:13 UTC
Permalink
I am converting my libgdx game into html for Facebook Instant Games. I need
to create a payload of type key-value javascript.
How to create a javascript key-value pair type object using java.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Jens
2018-05-28 11:12:00 UTC
Permalink
With latest GWT you can use jsinterop-base library and then use
JsPropertyMap: https://github.com/google/jsinterop-base/blob/master/java/jsinterop/base/JsPropertyMap.java

With older GWT versions you can use JSONObject from
com.google.gwt.json.JSON.

-- J.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...