Function jsonb::as_bool

source ·
pub fn as_bool(value: &[u8]) -> Option<bool>
Expand description

If the JSONB is a Boolean, returns the associated bool. Returns None otherwise.