is_empty_object

Function is_empty_object 

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

Matches an empty JSON object ({}).

ยงExamples

assert_that!(j!({}), json::is_empty_object());
assert_that!(j!({"a":1}), not(json::is_empty_object()));