is_empty_string

Function is_empty_string 

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

Matches an empty JSON string ("").

ยงExamples

assert_that!(j!(""), json::is_empty_string());
assert_that!(j!("hi"), not(json::is_empty_string()));