Description

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

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

Signatures

bool set(JsonObjectConst obj) const;

Arguments

obj: a JsonObjectConst 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

Global warming stripes by Professor Ed Hawkins (University of Reading)