is_number

Function is_number 

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

Matches JSON number values.

ยงExamples

assert_that!(j!(3.14), json::is_number());
assert_that!(j!("three"), not(json::is_number()));