Skip to main content

take_bool

Function take_bool 

Source
fn take_bool(
    obj: &BTreeMap<String, JsonValue>,
    key: &'static str,
    dst: &mut bool,
) -> Result<(), &'static str>
Expand description

JSON オブジェクトから真偽値を取り出す。 キーが無いのは正常(未指定)。あるのに型が違う場合はエラーを返す。