any_value

Function any_value 

Source
pub fn any_value() -> JsonPredicateMatcher<impl Fn(&Value) -> bool, &'static str, &'static str>
๐Ÿ‘ŽDeprecated since 0.2.2: Use is_not_null instead
Expand description

Matches JSON values that are not null.

ยงExamples

assert_that!(j!("ok"), json::any_value());
assert_that!(j!(null), not(json::any_value()));