Added JsonHashTable::containsKey()

This commit is contained in:
Benoit Blanchon committed 2014-01-13 19:46:53 +01:00
1 parent 9f4eb42cd6
commit 319600d51c
2 files changed
+7

No files matched your search

+5
View File
@@ -48,6 +48,11 @@ jsmntok_t* JsonHashTable::getToken(char* desiredKey)
return 0;
}
bool JsonHashTable::containsKey(char* key)
{
return getToken(key) != 0;
}
JsonArray JsonHashTable::getArray(char* key)
{
return JsonArray(json, getToken(key));