JsonArray::set()
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 successfulfalse
if there was not enough room in theJsonDocument
.