mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 08:48:27 +01:00
as<bool>()
This commit is contained in:
@@ -47,6 +47,8 @@ inline bool VariantData::asBoolean() const {
|
||||
return _content.asFloat != 0;
|
||||
case VALUE_IS_NULL:
|
||||
return false;
|
||||
case VALUE_IS_POINTER:
|
||||
return _content.asPointer->asBoolean();
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user