public function getJson()
    {
        if (stripos($this->getHeader('content-type'), '/json') !== false) {
            return json_decode($this->body, true);
        } else {
            return false;
        }
    }
public function getJson()
    {
        if (stripos($this->getHeader('content-type'), '/json') !== false) {
            return json_decode($this->body, true);
        } else {
            return false;
        }
    }
public function getJson ( ) { if ( stripos ( $ this -> getHeader ( 'content-type' ) , '/json' ) !== false ) { return json_decode ( $ this -> body , true ) ; } else { return false ; } }
Get json response data
@return mixed
Get json response data