I've just debugged this through ZF2.2 and the problem is that
ViewJsonStrategy is not picking up the JsonModel. I fixed it by replacing...

   $e->setResult($jsonModel);

with

    $e->setViewModel($jsonModel);




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Returning-JSON-for-404-and-for-exception-tp4660236p4660778.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to