Treatment fromOptionBool
json/value::fromOptionBool
Generics
◻ B: ToBool
Inputs
⇥ value: Stream<Option<B>>
Outputs
↦ json: Stream<Json> (json::Json)
Turns stream of boolean convertible option values into JSON boolean or null values.
When value is some boolean, it is turned into JSON boolean, else if value is none, null JSON value is streamed.