is_true

Function is_true 

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

Matches the JSON boolean true value.

ยงExamples

assert_that!(j!(true), json::is_true());
assert_that!(j!(false), not(json::is_true()));