jsonobjj is the Json Object that is sent in the response. flush() sends the binary output stream.
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
out.print(jsonobjj);
out.flush();
No comments:
Post a Comment