lib/Elastica/Response.php
public function getData()
    {
        if (null == $this->_response) {
            $response = $this->_responseString;

            try {
                if ($this->getJsonBigintConversion()) {
                    $response = JSON::parse($response, true, 512, JSON_BIGINT_AS_STRING);
                } else {
                    $response = JSON::parse($response);
                }
            } catch (JSONParseException $e) {
                // leave response as is if parse fails
            }

            if (empty($response)) {
                $response = [];
            }

            if (\is_string($response)) {
                $response = ['message' => $response];
            }

            $this->_response = $response;
            $this->_responseString = '';
        }

        return $this->_response;
    }
public function getData()
    {
        if (null == $this->_response) {
            $response = $this->_responseString;

            try {
                if ($this->getJsonBigintConversion()) {
                    $response = JSON::parse($response, true, 512, JSON_BIGINT_AS_STRING);
                } else {
                    $response = JSON::parse($response);
                }
            } catch (JSONParseException $e) {
                // leave response as is if parse fails
            }

            if (empty($response)) {
                $response = [];
            }

            if (\is_string($response)) {
                $response = ['message' => $response];
            }

            $this->_response = $response;
            $this->_responseString = '';
        }

        return $this->_response;
    }
public function getData ( ) { if ( null == $ this -> _response ) { $ response = $ this -> _responseString ; try { if ( $ this -> getJsonBigintConversion ( ) ) { $ response = JSON :: parse ( $ response , true , 512 , JSON_BIGINT_AS_STRING ) ; } else { $ response = JSON :: parse ( $ response ) ; } } catch ( JSONParseException $ e ) { // leave response as is if parse fails } if ( empty ( $ response ) ) { $ response = [ ] ; } if ( \ is_string ( $ response ) ) { $ response = [ 'message' => $ response ] ; } $ this -> _response = $ response ; $ this -> _responseString = '' ; } return $ this -> _response ; }
Response data array.

@return array Response data array
Response data array .