src/Dropbox/DropboxResponse.php
protected function decodeBody()
    {
        $body = $this->getBody();

        if (isset($this->headers['Content-Type']) && in_array('application/json', $this->headers['Content-Type'])) {
            $this->decodedBody = (array) json_decode((string) $body, true);
        }

        // If the response needs to be validated
        if ($this->getRequest()->validateResponse()) {
            //Validate Response
            $this->validateResponse();
        }
    }
protected function decodeBody()
    {
        $body = $this->getBody();

        if (isset($this->headers['Content-Type']) && in_array('application/json', $this->headers['Content-Type'])) {
            $this->decodedBody = (array) json_decode((string) $body, true);
        }

        // If the response needs to be validated
        if ($this->getRequest()->validateResponse()) {
            //Validate Response
            $this->validateResponse();
        }
    }
protected function decodeBody ( ) { $ body = $ this -> getBody ( ) ; if ( isset ( $ this -> headers [ 'Content-Type' ] ) && in_array ( 'application/json' , $ this -> headers [ 'Content-Type' ] ) ) { $ this -> decodedBody = ( array ) json_decode ( ( string ) $ body , true ) ; } // If the response needs to be validated if ( $ this -> getRequest ( ) -> validateResponse ( ) ) { //Validate Response $ this -> validateResponse ( ) ; } }
Decode the Body

@throws DropboxClientException

@return void
Decode the Body