Best way for JSON output in Joomla controller