Description

JsonArrayConst::operator[] gets a value in the array pointed by the JsonArrayConst.

If the JsonArrayConst is null, this operator does nothing.

JsonArrayConst::operator[] is a read-only version of JsonArray::operator[]()

Signatures

JsonVariantConst operator[](size_t index) const;

Argument

index: the zero-based position of the value in the array.

Return value

This operator returns a JsonVariantConst, a read-only reference to the value is the array.

If the index is out of range, this function returns a null reference.

See also