Added JsonArray::getDouble() and JsonHashTable::getDouble()

This commit is contained in:
Benoit Blanchon
2014-01-12 17:08:22 +01:00
parent 80c2cf3567
commit 9e91fb3f46
6 changed files with 25 additions and 5 deletions

View File

@ -53,6 +53,11 @@ JsonArray JsonHashTable::getArray(char* key)
return JsonArray(json, getToken(key));
}
double JsonHashTable::getDouble(char* key)
{
return getDoubleFromToken(getToken(key));
}
JsonHashTable JsonHashTable::getHashTable(char* key)
{
return JsonHashTable(json, getToken(key));