Description

JsonArrayConst is a read-only version of JsonArray. It’s also twice smaller because it doesn’t contain a pointer to the memory pool.

Example

// parse a JSON array
JsonDocument doc;
deserializeJson(doc, "[1,2,3]");

// extract the values
JsonArrayConst array = doc.as<JsonArray>();
for(JsonVariantConst v : array) {
    Serial.println(v.as<int>());
}

Member functions

Global warming stripes by Professor Ed Hawkins (University of Reading)