Getting Zend to return JSON data can be tricky at times. The JSON helper likes to send the ‘official’ JSON header (application/json), and most browsers are treating that as a download link, resulting in no data to the client and an unfortunate download box.
To bypass this default behaviour, you’ll need to tell the controller how to serve your JSON data:
// In your controller
public function outputAsJSON()
$content = $some_var;
To output all of your view’s variables in this way, replace
Hopefully this saved someone a headache or two when dealing with Zend’s puzzling JSON implementation.