Merged nestedTokenCount() and nextSibling()

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

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;