Java JSON转List<Map<String,Object>> 转换泛型

Gson gson = new GsonBuilder().create();

Type type = new TypeToken>>() {}.getType();

regionList = gson.fromJson(jsons, type);

//regionList = JSON.parseObject(jsons, new TypeReference>>(){});

你可能感兴趣的:(java,json)