title: Write json object with controller using rendered jsp
body: <p>I use Spring MVC.
  I want to render some jsp by forwarding to it. And then I want to write the result to json.</p>
  
  <p>For exmple I want to render my complex jsp and on exit I want to get:
  {"result":"ok","html":"......."}</p>
  
  <p>How can I do this?
  I've tried to look at
  request.getRequestDispatcher("tutorMini").forward(request, response)
  But if I can't pass response to it, bcz it should write all output to it.</p>
  
  <p>And I've tried to use some json tags in jsp, but it has some troubles with hierarchy:
  <a href="https://stackoverflow.com/questions/1476508/html-output-with-jspinclude-and-json-taglib">HTML output with jsp:include and json-taglib</a></p>