Hi,
There are simple things that still cost me and I need to solve a silly 
interaction problem of a Map.

My project extracts information from a web service using the new Rest API.
My problem is that the moment I try to interact the Map, all the 
information comes in a single register.
Remark: Menu is a class that implements PropertyBusinessObject.

My code:

        Response<Map> jMenu = Rest.get(SERVER_URL + 
"usuario/busquedaMenu").queryParam("token", Preferences.get("token", 
null)).acceptJson().getAsJsonMap();
        if (jMenu.getResponseCode() != 200) {
            Dialog.show("Error", "Lo sentimos, No existe un MenĂº definido 
para esta empresa", "Continuar", null);
            return;
        }
        Map<Integer, Menu> m = jMenu.getResponseData();

        for (Map.Entry<Integer, Menu> entry : m.entrySet()) {
            System.out.println("clave=" + entry.getKey() + ", valor=" + 
entry.getValue());
        }

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f126241c-b1e3-403b-87a7-a3aacfc2fbfc%40googlegroups.com.

Reply via email to