A shortcut for JsonArray::get()
and JsonArray::set()
, with an array-like syntax.
JsonVariant& operator[](size_t index);
const JsonVariant& operator[](size_t index) const;
Arguments
index
: the zero-based position of the value in the array.
A reference to the JsonVariant
in the array.
JsonArray& array = jsonBuffer.createArray();
array.add(42);
int value = array[0];
array[0] = 666;
See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4