A RetroSearch Logo

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

Search Query:

Showing content from https://arduinojson.org/v6/api/jsonarray/createnestedarray/ below:

JsonArray::createNestedArray() | ArduinoJson 6

Description

JsonArray::createNestedArray() appends a new array to the array pointed by the JsonArray.

If the JsonArray is null/unbound, this function does nothing.

Signature
JsonArray createNestedArray() const;
Return value

JsonArray::createNestedArray() returns a JsonArray that points to the newly created array.

JsonArray::createNestedArray() returns null if the memory allocation fails; in which case JsonArray::isNull(), returns true.

Example
StaticJsonDocument<200> doc;
JsonArray array = doc.to<JsonArray>();
array.add("hello");
JsonArray nested = array.createNestedArray();
nested.add("world");
serializeJson(array, Serial);

will write

See also
  1. Home
  2. Version 6
  3. API
  4. JsonArray
  5. createNestedArray()

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