Iterator it = users.iterator(); if(it.hasNext()){ Map user = (Map)it.next(); String id=user.get("id").toString(); ----- }