pub fn jsonb_to_number<T: TryFrom<F64>>(v: JsonbRef<'_>) -> Result<T>
Note that PostgreSQL casts JSON numbers from arbitrary precision numeric but we use f64. This is less powerful but still meets RFC 8259 interoperability.
numeric
f64