把json数据转换成list

ObjectMapper mapper = new ObjectMapper();
  List<YeWuLuYou> readValue = mapper.readValue(yeWuLuYou,new TypeReference<List<YeWuLuYou>>(){});

把数据转换成json

 String json=mapper.writeValueAsString(object);
  return json;

05-08 08:01