JsonArray::getElement()
Removed in ArduinoJson 6.20: use operator[] instead.
Description
JsonArray::getElement() gets the value at the specified index in the array pointed by the JsonArray.
If the JsonArray is null/unbound, this function does nothing.
Instead of this function, you can use operator[] which offers a more intuitive syntax.
Signature
JsonVariant getElement(size_t index) const;
Arguments
index: the index of the value in the array.
Return value
JsonArray::getElement() returns a JsonVariant that points to the value at the specified index.
JsonArray::getElement() returns null when the index is out of range; in which case JsonVariant::isNull(), returns true.