There was a renderJSON method once but its so trivial to return a JSON response that its not needed. The template has to receive the API class and other parameters so its nice to have this shortcut