mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 20:42:24 +02:00
Added JsonHashTable::containsKey()
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user