public function json($content)
    {
        $this->header('Content-Type', 'application/json');
        $this->json = true;
        $this->content = $content;

        return $this;
    }
public function json($content)
    {
        $this->header('Content-Type', 'application/json');
        $this->json = true;
        $this->content = $content;

        return $this;
    }
public function json ( $ content ) { $ this -> header ( 'Content-Type' , 'application/json' ) ; $ this -> json = true ; $ this -> content = $ content ; return $ this ; }
Set a json content as response.

@param mixed $content

@return $this
Set a json content as response .