A simple JSON action helper
JSON is my language of choice for communication between JavaScript and server side scripts. It’s lightweight, and it can be interpreted natively in JavaScript. That means that it’s usually the fastest way of getting information from your server to the browser of your users.
The Zend Framework has an excellent utility for encoding things, called Zend_Json. [...]