title: Render ModelAndView as HTML in JSON with Spring
body: <p>I am trying to return generic JSON using <code>@ResponseBody</code> in Spring, in one of the use case handling J need to return <code>ModelAndView</code> as a HTML with JSON depending on some logic.</p>
  
  <p>My bean looks likes:</p>
  
  <pre><code>Class GenericJSON {
     String status;
     ModelAndView mav;
  } 
  </code></pre>
  
  <p>Now for the case when I need to return <code>mav</code> as one of the parameter in JSON, it does not goes as plain HTML rather it goes in JSON expanding the attributes of ModelAndView and whole of the model becomes a JSON and view is null.</p>
  
  <p>Any suggestions how to return the JSON which contains ModelAndView and client gets it as plain HTML?</p>