pub fn value_to_bool(value: &Value) -> boolExpand description
Convert a Value to its boolean representation.
Bool(b)→bInt(0)→false, other ints →trueString("")→false, non-empty →trueNull→falseFloat(0.0)→false, other floats →trueJson(null)→false,Json([])→false,Json({})→false, others →trueBlob(_)→true(blobs always exist if referenced)