最近用Servlet做了一个登录验证的小程序,但是在Servlet里返回json数据时遇到了问题,将输出的json数据显示到html页面上,

从图片返回的数据来看j'son数据和html代码合在一起了,有什么方法将json数据合并进html页显示吗?
代码如下
```java
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
//response.getWriter().append("Served at: ").append(request.getContextPath());
Stu st=new Stu("学号","123456789");
ObjectMapper ob=new ObjectMapper();
String s=ob.writeValueAsString(st);
request.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=utf-8");
response.getWriter().append(s);
request.getRequestDispatcher("index.html").include(request, response);
}
```