Warning
This documentation does not refer to the most recent version of Pylons. Current Documentation
The decorators module is accessible via the pylons module.
Action decorator that formats output for JSON
Given a function that will return content, this decorator will turn the result into JSON, with a content-type of 'text/javascript' and output it.
See the source for more information.