public function getResponseData()
    {
        $data = null;

        if ($body = $this->getResponseBody()) {
            if (($decoded = json_decode($body, true))) {
                $data = $decoded;
            }
        }

        return $data;
    }
public function getResponseData()
    {
        $data = null;

        if ($body = $this->getResponseBody()) {
            if (($decoded = json_decode($body, true))) {
                $data = $decoded;
            }
        }

        return $data;
    }
public function getResponseData ( ) { $ data = null ; if ( $ body = $ this -> getResponseBody ( ) ) { if ( ( $ decoded = json_decode ( $ body , true ) ) ) { $ data = $ decoded ; } } return $ data ; }
Gets the response body as an array, if the response body is JSON-encoded
data.  Otherwise, returns null.

@return array|null
Gets the response body as an array if the response body is JSON - encoded data . Otherwise returns null .