Function pact_models::json_utils::json_to_num[][src]

pub fn json_to_num(value: Option<Value>) -> Option<usize>
Expand description

Converts an optional JSON struct to a usize, returning None if it is not a numeric type.