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

@ -41,6 +41,11 @@ JsonArray JsonArray::getArray(int index)
return JsonArray(json, getToken(index));
}
double JsonArray::getDouble(int index)
{
return getDoubleFromToken(getToken(index));
}
JsonHashTable JsonArray::getHashTable(int index)
{
return JsonHashTable(json, getToken(index));