I’m writing a GWT application and I need to pass an array of java objects into JavaScript (or convert such array to JS array), I’m very new to JSNI and wondering if it’s possible to do.
For example :

public class EntityBase {

    private String id;

    private String name;

    public EntityBase(int id) {
        this.id = id;

and I have an array of such objects…can I pass them correctly? If not, what will you suggest me to do? Thanks for any help.