pub fn is_whole_number() -> JsonPredicateMatcher<impl Fn(&Value) -> bool, &'static str, &'static str>Expand description
Matches JSON numbers whose fractional part is zero (e.g., 2 or 2.0).
ยงExamples
assert_that!(j!(2.0), json::is_whole_number());
assert_that!(j!(2.5), not(json::is_whole_number()));