each_is_null

Function each_is_null 

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

Matches JSON arrays whose elements are all JSON null.

ยงExamples

assert_that!(j!([null, null]), json::each_is_null());
assert_that!(j!([null, true]), not(json::each_is_null()));