json美化输出字符串给前端

ObjectMapper om = new ObjectMapper();

System.out.println(om.writerWithDefaultPrettyPrinter().writeValueAsString(request));

你可能感兴趣的:(json)