Function |from_option_bool

json/value::|from_option_bool


Usage

|from_option_bool<B>(value)

Generics

◻ B: ToBool

Parameters

↳ value: Option<B>

Return

↴ Json


Makes a JSON boolean or null value.

If value is some boolean, it is turned into JSON boolean, else if value is none, null JSON value is returned.