Type type = new com.google.gson.reflect.TypeToken<List<Tag>>() {}.getType(); tags=gson.fromJson(json, type) ;