Added JsonObjectIterator

This commit is contained in:
Benoit Blanchon
2014-07-18 22:40:50 +02:00
parent b75d32e980
commit 851d21e08c
8 changed files with 158 additions and 16 deletions

View File

@ -6,6 +6,7 @@
#pragma once
#include "JsonValue.h"
#include "JsonObjectIterator.h"
namespace ArduinoJson
{
@ -43,6 +44,16 @@ namespace ArduinoJson
return getValue(key).success();
}
JsonObjectIterator begin()
{
return JsonObjectIterator(json, token.firstChild());
}
JsonObjectIterator end()
{
return JsonObjectIterator(json, token.nextSibling());
}
DEPRECATED JsonArray getArray(const char* key);
DEPRECATED bool getBool(const char* key)