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

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

No files matched your search

+2 -2
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);