把json数据转换成list
ObjectMapper mapper = new ObjectMapper();
List<YeWuLuYou> readValue = mapper.readValue(yeWuLuYou,new TypeReference<List<YeWuLuYou>>(){});
把数据转换成json
String json=mapper.writeValueAsString(object);
return json;
把json数据转换成list
ObjectMapper mapper = new ObjectMapper();
List<YeWuLuYou> readValue = mapper.readValue(yeWuLuYou,new TypeReference<List<YeWuLuYou>>(){});
把数据转换成json
String json=mapper.writeValueAsString(object);
return json;