protected function output($buffer)
	{
		$buffer = $this->replaceInsertTags($buffer);
        $buffer = str_replace(array('{{request_token}}', '[{]', '[}]'), array(REQUEST_TOKEN, '{{', '}}'), $buffer);
        $buffer = str_replace('{{request_token}}', \RequestToken::get(), $buffer);

		if (is_array($buffer) || is_object($buffer))
		{
			$buffer = json_encode($buffer);
		}

		echo $buffer;
		exit;
	}
protected function output($buffer)
	{
		$buffer = $this->replaceInsertTags($buffer);
        $buffer = str_replace(array('{{request_token}}', '[{]', '[}]'), array(REQUEST_TOKEN, '{{', '}}'), $buffer);
        $buffer = str_replace('{{request_token}}', \RequestToken::get(), $buffer);

		if (is_array($buffer) || is_object($buffer))
		{
			$buffer = json_encode($buffer);
		}

		echo $buffer;
		exit;
	}
protected function output ( $ buffer ) { $ buffer = $ this -> replaceInsertTags ( $ buffer ) ; $ buffer = str_replace ( array ( '{{request_token}}' , '[{]' , '[}]' ) , array ( REQUEST_TOKEN , '{{' , '}}' ) , $ buffer ) ; $ buffer = str_replace ( '{{request_token}}' , \ RequestToken :: get ( ) , $ buffer ) ; if ( is_array ( $ buffer ) || is_object ( $ buffer ) ) { $ buffer = json_encode ( $ buffer ) ; } echo $ buffer ; exit ; }
Output data, encode to json and replace insert tags.

@param string $buffer
@return string
Output data encode to json and replace insert tags .