fastjson json字符串转list<xxx>

List<xxx> list = JSON.parseObject(jsonString, new TypeReference<List< xxx >>() {});

例如 :List<Map<String, String>> pids=JSON.parseObject(jsonString, new TypeReference<List<Map<String, String>>>() {});

posted @ 2020-04-18 14:45  窦婴  阅读(880)  评论(0编辑  收藏  举报