JsonBuffer::createObject()
This page covers ArduinoJson 5.13.5, consider upgrading to version 6.19.4.
Description
Allocates an empty JsonObject
.
Signature
JsonObject createObject();
Return value
Returns a reference to the new JsonObject
or JsonObject::invalid()
if the allocation fails.
Example
StaticJsonBuffer<200> jsonBuffer;
JsonObject& object = jsonBuffer.createObject();
object["hello"] = "world";