deserialize json string with gson
I solved with this code:
String lista = (String)request.getAttribute("lista");
Gson gson = new Gson();
Type listType = new TypeToken<ArrayList<Utente>>() {}.getType();
ArrayList<Utente> users = new Gson().fromJson(lista, listType);