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";

See also

 X online