src/Response.php
public function isJson()
    {
        if ($this->is_json === null) {
            $this->is_json = strpos($this->getContentType(), 'application/json') !== false;
        }

        return $this->is_json;
    }
public function isJson()
    {
        if ($this->is_json === null) {
            $this->is_json = strpos($this->getContentType(), 'application/json') !== false;
        }

        return $this->is_json;
    }
public function isJson ( ) { if ( $ this -> is_json === null ) { $ this -> is_json = strpos ( $ this -> getContentType ( ) , 'application/json' ) !== false ; } return $ this -> is_json ; }
Return true if response is JSON.

@return bool
Return true if response is JSON .