pub fn expect_bool_or_null(
    token: Option<Result<Token<'_>, Error>>
) -> Result<Option<bool>, Error>
Expand description

Expects a Token::ValueBool or Token::ValueNull, and returns the bool value if it’s not null.