src/Strategy/JsonStrategy.php
protected function isJsonEncodable($response) : bool
    {
        if ($response instanceof ResponseInterface) {
            return false;
        }

        return (is_array($response) || is_object($response));
    }
protected function isJsonEncodable($response) : bool
    {
        if ($response instanceof ResponseInterface) {
            return false;
        }

        return (is_array($response) || is_object($response));
    }
protected function isJsonEncodable ( $ response ) : bool { if ( $ response instanceof ResponseInterface ) { return false ; } return ( is_array ( $ response ) || is_object ( $ response ) ) ; }
Check if the response can be converted to JSON

Arrays can always be converted, objects can be converted if they're not a response already

@param mixed $response

@return bool
Check if the response can be converted to JSON