I'm not really sure whats required to make an action return json.
I'm sure there is more then one way to skin this cat, but I'm not sure what is absolutely required.
Is it adequate to just $this->render(array('json' => compact('data')); ?
Do I need to add a route specifying its json?
Do I also need to add the media type application/json?
Do I also need to add the default layout default.json.php?
Do I also need to add the view action.json.php?
Notes: I want any arbitrary url: www.mysite.com/Controller/Action to always return json.
I would prefer to be able to specify the return type in my action ONLY (ie, render type).