src/PipelinerSales/ApiClient/Http/Response.php
public function decodeJson($assoc = false)
    {
        $result = json_decode($this->body, $assoc);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new PipelinerHttpException($this, "Error while parsing returned JSON");
        }

        return $result;
    }
public function decodeJson($assoc = false)
    {
        $result = json_decode($this->body, $assoc);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new PipelinerHttpException($this, "Error while parsing returned JSON");
        }

        return $result;
    }
public function decodeJson ( $ assoc = false ) { $ result = json_decode ( $ this -> body , $ assoc ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { throw new PipelinerHttpException ( $ this , "Error while parsing returned JSON" ) ; } return $ result ; }
Decodes the response's body into an object.
@param boolean $assoc when true, returned objects will be converted into associative arrays.
@return \stdClass|array
@throws PipelinerHttpException on error while decoding the json string
Decodes the response s body into an object .