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