src/Concerns/MakesHttpRequests.php
protected function decodeResponseJson()
    {
        $decodedResponse = json_decode($this->response->getContent(), true);

        if (is_null($decodedResponse) || $decodedResponse === false) {
            $this->fail('Invalid JSON was returned from the route. Perhaps an exception was thrown?');
        }

        return $decodedResponse;
    }
protected function decodeResponseJson()
    {
        $decodedResponse = json_decode($this->response->getContent(), true);

        if (is_null($decodedResponse) || $decodedResponse === false) {
            $this->fail('Invalid JSON was returned from the route. Perhaps an exception was thrown?');
        }

        return $decodedResponse;
    }
protected function decodeResponseJson ( ) { $ decodedResponse = json_decode ( $ this -> response -> getContent ( ) , true ) ; if ( is_null ( $ decodedResponse ) || $ decodedResponse === false ) { $ this -> fail ( 'Invalid JSON was returned from the route. Perhaps an exception was thrown?' ) ; } return $ decodedResponse ; }
Validate and return the decoded response JSON.

@return array
Validate and return the decoded response JSON .