each_is_string

Function each_is_string 

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

Matches JSON arrays whose elements are all JSON strings.

ยงExamples

assert_that!(j!( ["a", "b" ]), json::each_is_string());
assert_that!(j!([1, "b"]), not(json::each_is_string()));