On Wednesday, November 15, 2017 at 11:19:56 AM UTC+1, Jens wrote:
>
>
> Thanks for the early response. Can you give an example of getData(String
>> key) method.
>>
>
> Sure, assuming your values are only strings you can do
>
> public native String getData(String key) /*-{
> return
JSNI is not recommended.
If you can assign types, go with JsInterop, if not -> then you have a map
String->?
--
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
Thanks a bunch!!
On Wednesday, 15 November 2017 15:49:56 UTC+5:30, Jens wrote:
>
>
> Thanks for the early response. Can you give an example of getData(String
>> key) method.
>>
>
> Sure, assuming your values are only strings you can do
>
> public native String getData(String key) /*-{
> return
> Thanks for the early response. Can you give an example of getData(String
> key) method.
>
Sure, assuming your values are only strings you can do
public native String getData(String key) /*-{
return this.data[key];
}-*/;
If your values can also be number, boolean, JS Object you need
Thanks for the early response. Can you give an example of getData(String
key) method.
On Wednesday, 15 November 2017 14:49:56 UTC+5:30, Jens wrote:
>
> You can use JSONObject, a custom JavaScriptObject with JSNI getColumns()
> and getData(String key) methods or use JsPropertyMap from
You can use JSONObject, a custom JavaScriptObject with JSNI getColumns()
and getData(String key) methods or use JsPropertyMap from jsinterop.base
library.
-- J.
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and
I have a json response like this
{"columns": ["a", "b", "c"], "data": {"a": "some value", "b": "some value",
"c": "some value"}}
Now here whatever values columns have the same values are used as keys in
data object. I have to parse this json in GWT client side. As far as I know
JSNI