is_not_null

Function is_not_null 

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

Matches JSON values that are not null.

ยงExamples

assert_that!(j!("text"), json::is_not_null());
assert_that!(j!(null), not(json::is_not_null()));