forked from bblanchon/ArduinoJson
Fixed bug in JsonArray::begin() and end()
This commit is contained in:
1 parent
0fe77176e1
commit
cd7a7b1533
4 files changed
+23
-8
No files matched your search
@@ -35,19 +35,19 @@ namespace ArduinoJson
|
||||
|
||||
int size()
|
||||
{
|
||||
return isArray() ? JsonToken::size() : 0;
|
||||
return isArray() ? childrenCount() : 0;
|
||||
}
|
||||
|
||||
JsonValue operator[](int index);
|
||||
|
||||
JsonArrayIterator begin()
|
||||
{
|
||||
return firstChild();
|
||||
return isArray() ? firstChild() : null();
|
||||
}
|
||||
|
||||
JsonArrayIterator end()
|
||||
{
|
||||
return nextSibling();
|
||||
return isArray() ? nextSibling() : null();
|
||||
}
|
||||
|
||||
DEPRECATED int getLength()
|
||||
|
||||
Reference in new issue
Block a user