java对象转json数据
Student student = new Student(age, name);
ObjectMapper objectMapper = new ObjectMapper();
String json = objectMapper.writeValueAsString(student);
Student student = new Student(age, name);
ObjectMapper objectMapper = new ObjectMapper();
String json = objectMapper.writeValueAsString(student);