<?php 
namespace JExtstore\Component\JRealtimeAnalytics\Administrator\View\Ajaxserver;

/**
 * @author Joomla! Extensions Store
 * @package JREALTIMEANALYTICS::AJAXSERVER::administrator::components::com_jrealtimeanalytics
 * @subpackage views
 * @subpackage ajaxserver
 * @copyright (C)2014 Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
use JExtstore\Component\JRealtimeAnalytics\Administrator\Framework\View as JRealtimeView;

/**
 * Config view
 *
 * @package JREALTIMEANALYTICS::AJAXSERVER::administrator::components::com_jrealtimeanalytics
 * @subpackage views
 * @subpackage ajaxserver
 * @since 2.0
 */
class JsonView extends JRealtimeView {
	/**
	 * Return application/json response to JS client APP
	 * Replace $tpl optional param with $userData contents to inject
	 *        	
	 * @access public
	 * @param string $tpl
	 * @return void
	 */
	public function display($userData = null) {
		echo json_encode($userData);  
	}
}