A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arduinojson.org/v5/api/jsonarray/subscript/ below:

JsonArray::operator[] | ArduinoJson 5

Description

A shortcut for JsonArray::get() and JsonArray::set(), with an array-like syntax.

Signatures
JsonVariant& operator[](size_t index);
const JsonVariant& operator[](size_t index) const;
Arguments

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

Return value

A reference to the JsonVariant in the array.

Example
JsonArray& array = jsonBuffer.createArray();
array.add(42);
int value = array[0];
array[0] = 666;
See also
  1. Home
  2. Version 5
  3. API
  4. JsonArray
  5. operator[]

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