src/UI/DevOutput.php
public function printJson( $mixed, $sign = NULL, $factor = NULL, $return = FALSE )
	{
		if( $return )
			ob_start();
		extract( self::$channels[$this->channel] );
		$o	= new UI_DevOutput();
		echo $lineBreak;
		$space	= $this->indentSign( 1, $sign, $factor );
		$json	= ADT_JSON_Formater::format( $mixed );
		$json	= str_replace( "\n", $lineBreak, $json );
		$json	= str_replace( "  ", $space, $json );
		echo $json;
		if( $return )
			return ob_get_clean();
	}
public function printJson( $mixed, $sign = NULL, $factor = NULL, $return = FALSE )
	{
		if( $return )
			ob_start();
		extract( self::$channels[$this->channel] );
		$o	= new UI_DevOutput();
		echo $lineBreak;
		$space	= $this->indentSign( 1, $sign, $factor );
		$json	= ADT_JSON_Formater::format( $mixed );
		$json	= str_replace( "\n", $lineBreak, $json );
		$json	= str_replace( "  ", $space, $json );
		echo $json;
		if( $return )
			return ob_get_clean();
	}
public function printJson ( $ mixed , $ sign = NULL , $ factor = NULL , $ return = FALSE ) { if ( $ return ) ob_start ( ) ; extract ( self :: $ channels [ $ this -> channel ] ) ; $ o = new UI_DevOutput ( ) ; echo $ lineBreak ; $ space = $ this -> indentSign ( 1 , $ sign , $ factor ) ; $ json = ADT_JSON_Formater :: format ( $ mixed ) ; $ json = str_replace ( "\n" , $ lineBreak , $ json ) ; $ json = str_replace ( "  " , $ space , $ json ) ; echo $ json ; if ( $ return ) return ob_get_clean ( ) ; }
Prints out a variable as JSON.
@access		public
@param		mixed		$mixed		variable of every kind to print out
@param		string		$sign		Space Sign
@param		int			$factor		Space Factor
@param		boolean		$return		Flag: Return output instead of printing it
@return		void
Prints out a variable as JSON .