Treatment tryFromOptionNumberF64
json/value::tryFromOptionNumberF64
Generics
◻ F:
ToF64
Inputs
⇥ value:
Stream<Option<F>>
Outputs
↦ json:
Stream<Option<Json>>
(json::Json
)
Turns stream of option f64 convertible values into JSON numbers.
If value
is some number, it is turned into JSON, else if value
is none
, null
JSON value is streamed.
An infinite or NaN number is not a valid JSON value, and then stream none value if in that case.