pub fn json_to_f64(v: &Value, coerce_bool: bool) -> Option<f64>Expand description
Coerce a JSON value to f64.
- Numbers:
as_f64()directly - Strings: parse as f64 (
"5"→5.0) - Booleans:
true→1.0,false→0.0(whencoerce_boolis true) - Other types:
None