is_boolean

Function is_boolean 

Source
pub fn is_boolean() -> JsonPredicateMatcher<impl Fn(&Value) -> bool, &'static str, &'static str>
Expand description

Matches JSON boolean values.

ยงExamples

assert_that!(j!(true), json::is_boolean());
assert_that!(j!(0), not(json::is_boolean()));