mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
Merged nestedTokenCount() and nextSibling()
This commit is contained in:
@@ -11,6 +11,16 @@
|
||||
using namespace ArduinoJson::Parser;
|
||||
using namespace ArduinoJson::Internal;
|
||||
|
||||
JsonValue JsonValue::operator[](int index)
|
||||
{
|
||||
return JsonArray(json, token)[index];
|
||||
}
|
||||
|
||||
JsonValue JsonValue::operator[](const char* key)
|
||||
{
|
||||
return JsonHashTable(json, token)[key];
|
||||
}
|
||||
|
||||
JsonValue::operator bool()
|
||||
{
|
||||
if (!token.isPrimitive()) return 0;
|
||||
|
||||
Reference in New Issue
Block a user