fastjson 将json字符串转化成List<Map<String, Object>>
亲测可行,如下:
JSON.parseObject(jsonstr, new TypeReference<List<Map<String, Object>>>() {});
用的是阿里巴巴的fastjson, 其中,jsonstr指的是list类型的json字符串:例如:[{"name":"xxx","age":12},{"name":"zzz","age":15}]
亲测可行,如下:
JSON.parseObject(jsonstr, new TypeReference<List<Map<String, Object>>>() {});
用的是阿里巴巴的fastjson, 其中,jsonstr指的是list类型的json字符串:例如:[{"name":"xxx","age":12},{"name":"zzz","age":15}]