forked from bblanchon/ArduinoJson
Merged nestedTokenCount() and nextSibling()
This commit is contained in:
1 parent
5d2ffc49fd
commit
79953730fc
4 files changed
+14
-12
No files matched your search
@@ -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