Merged nestedTokenCount() and nextSibling()

This commit is contained in:
Benoit Blanchon committed 2014-07-18 16:18:03 +02:00
1 parent 5d2ffc49fd
commit 79953730fc
4 files changed
+14 -12

No files matched your search

+10
View File
@@ -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;