javascript - How can I read a String[] from a JavaScriptObject? (GWT) -


i creating object json has string[] property, json looks this:

{ key1: "val1",  key2: ["val2a", "val2b", "val2c"], } 

what's best way define javascriptobject?

right defining new object jsstring, java object looks this:

public class myobject extends javascriptobject {    ...    public jsarray<jsstring> getkey2() {...     } 

this kinda annoying. it'd nice if this:

public class myobject extends javascriptobject {    ...    public string[] getkey2() {...     } 

but doesn't work. there better way? in advance

did @ jsarraystring?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -