title: Zend Framework: Return view as JSON
body: <p>so my question is: What would be the best way to return the html of a response as JSON encoded string?</p>
  
  <p>I know there are the typical json action helpers but they dont fit my need.</p>
  
  <p>What i need is a way to return the complete html of a view as a json string if the request is an ajax-request.
  Because i want to change my app to only load the content of the main container and i also need to pass along a few other variables during the request i need to find a way to do so :)</p>
  
  <p>Maybe someone has already had some experience with that!</p>