Implement prettyprint and JSONP using action helper.