mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-02 15:41:37 +01: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