mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Renamed JsonArray::getLength() into size() to match std::vector
This commit is contained in:
@@ -28,13 +28,18 @@ 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)
|
||||||
{
|
{
|
||||||
return (JsonArray) (*this)[index];
|
return (JsonArray) (*this)[index];
|
||||||
|
|||||||
Reference in New Issue
Block a user