Treatment fromOptionNumberF64

json/value::fromOptionNumberF64


Generics

◻ F: ToF64

Parameters

↳ var replacement: Json (json::Json)

Inputs

⇥ value: Stream<Option<F>>

Outputs

↦ json: Stream<Json> (json::Json)


Turns stream of option u64 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 replacement value if in that case.