Skip to main content

json_get_bool

Function json_get_bool 

Source
pub fn json_get_bool(json: &str, field: &str) -> Option<bool>
Expand description

Get a field from a JSON object as a boolean. Returns None if the field doesn’t exist or isn’t a boolean.