当前位置 : 主页 > 编程语言 > c++ >

Jackson 高性能的JSON处理 ObjectMapper

来源:互联网 收集:自由互联 发布时间:2021-06-30
gistfile1.txt String jsonString="[{'id':'1'},{'id':'2'}]"; ObjectMapper mapper = new ObjectMapper(); List valueList = new ArrayList (); valueList = mapper.readValue(mapper.writeValueAsString(jsonString), List.class);
gistfile1.txt
String jsonString="[{'id':'1'},{'id':'2'}]";  
ObjectMapper mapper = new ObjectMapper();  
List
 
  > valueList = new ArrayList
  
   >(); valueList = mapper.readValue(mapper.writeValueAsString(jsonString), List.class);
  
 
网友评论