Test casting a JsonValue to a double

This commit is contained in:
Benoit Blanchon
2014-08-01 14:56:46 +02:00
parent 028ff6676e
commit c10bcee324
2 changed files with 16 additions and 6 deletions

View File

@ -69,6 +69,11 @@ namespace ArduinoJson
return "";
}
operator double()
{
return content.asDouble;
}
operator int()
{
return content.asLong;