public function getJsonResponse()
    {
        $json = json_decode($this->httpResponse);
        if (is_null($json) && json_last_error() != JSON_ERROR_NONE) {
            return null; // decode error
        } else {
            return is_object($json) ? $json : null;
        }
    }
public function getJsonResponse()
    {
        $json = json_decode($this->httpResponse);
        if (is_null($json) && json_last_error() != JSON_ERROR_NONE) {
            return null; // decode error
        } else {
            return is_object($json) ? $json : null;
        }
    }
public function getJsonResponse ( ) { $ json = json_decode ( $ this -> httpResponse ) ; if ( is_null ( $ json ) && json_last_error ( ) != JSON_ERROR_NONE ) { return null ; // decode error } else { return is_object ( $ json ) ? $ json : null ; } }
Determine if the http response looks like a JSON object

@return \StdClass the decoded response, or null if wasn't a json object
Determine if the http response looks like a JSON object