mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-22 23:07:29 +02:00
Test casting a JsonValue to a bool
This commit is contained in:
@ -59,6 +59,11 @@ namespace ArduinoJson
|
||||
content.asDouble = value;
|
||||
}
|
||||
|
||||
operator bool()
|
||||
{
|
||||
return content.asBool;
|
||||
}
|
||||
|
||||
operator const char*()
|
||||
{
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user