Function |try_from_option_number_f64

json/value::|try_from_option_number_f64


Usage

|try_from_option_number_f64(value)

Generics

◻ F: ToF64

Parameters

↳ value: Option<F>

Return

Option<Json>


Try to make a JSON numeric value from option f64 convertible value

If value is some number, it is turned into JSON, else if value is none, null JSON value is returned. An infinite or NaN number is not a valid JSON value, and then return none value in that case.