Renamed JsonArray::getLength() into size() to match std::vector

This commit is contained in:
Benoît Blanchon committed 2014-07-16 14:01:04 +02:00
1 parent 7487b8cbb7
commit 6164328892
1 file changed
+6 -1
+6 -1
View File
@@ -28,12 +28,17 @@ namespace ArduinoJson
return JsonObjectBase::success() && tokens->type == JSMN_ARRAY; return JsonObjectBase::success() && tokens->type == JSMN_ARRAY;
} }
int getLength() int size()
{ {
return success() ? tokens[0].size : 0; return success() ? tokens[0].size : 0;
} }
JsonValue operator[](int index); JsonValue operator[](int index);
DEPRECATED int getLength()
{
return size();
}
DEPRECATED JsonArray getArray(int index) DEPRECATED JsonArray getArray(int index)
{ {