is_empty_array

Function is_empty_array 

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

Matches an empty JSON array ([]).

ยงExamples

assert_that!(j!([]), json::is_empty_array());
assert_that!(j!([1]), not(json::is_empty_array()));