Description

JsonObject::set() copies the content of an object to the object pointed by the JsonObject.

If the JsonObject is null, this function does nothing.

Signatures

bool set(JsonObjectConst obj) const;

Arguments

obj: a JsonObject pointing to the object to copy.

Return value

JsonObject::set() returns a bool that tells whether the operation was successful or not:

  • true if the operation is successful
  • false if there was not enough room in the JsonDocument.

See also