pub fn expect_bool_or_null( token: Option<Result<Token<'_>, Error>>, ) -> Result<Option<bool>, Error>
Expects a Token::ValueBool or Token::ValueNull, and returns the bool value if it’s not null.