Description

JsonArray::set() replaces the elements of the array pointed by the JsonArray with values from another array.

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

Signatures

bool set(JsonArrayConst src) const;

Arguments

src: a JsonArray that points to the array to copy.

Return value

JsonArray::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)