A RetroSearch Logo

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

Search Query:

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

JsonArray::createNestedObject() | ArduinoJson 5

Description

Adds a new nested object to the end of the array.

Signature
JsonObject& createNestedObject();
Return value

A reference to the new JsonObject. You can check JsonObject::success() to verify that the allocation succeeded.

Example
StaticJsonBuffer<200> jsonBuffer;
JsonArray& array = jsonBuffer.createArray();
JsonObject& nested = array.createNestedObject();
nested["hello"] = "world";
array.printTo(Serial);

will write

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

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