String类型的数据是个很标准的key、value形式,可经过Gson转成Map类型

Gson gson = new Gson(); Map<String, Object> map = new HashMap<String, Object>(); map = gson.fromJson(jsonStr, map.getClass());//jsonStr须要转换的值 <dependency> <groupId>com.google.code.gson</groupId>
相关文章
相关标签/搜索