Fixed bug in JsonObject::begin() and end()

This commit is contained in:
Benoit Blanchon
2014-07-19 14:49:59 +02:00
parent e94575b4b8
commit 0fe77176e1
5 changed files with 73 additions and 39 deletions

View File

@ -42,12 +42,12 @@ namespace ArduinoJson
JsonObjectIterator begin()
{
return firstChild();
return isObject() ? firstChild() : null();
}
JsonObjectIterator end()
{
return nextSibling();
return isObject() ? nextSibling() : null();
}
DEPRECATED JsonArray getArray(const char* key);