Skip to main content

json_get_float

Function json_get_float 

Source
pub fn json_get_float(json: &str, field: &str) -> Option<f64>
Expand description

Get a field from a JSON object as a float. Returns None if the field doesn’t exist or isn’t a number.