Copies an array. https://arduinojson.org/v7/api/jsonarray/set/
| 91 | // Copies an array. |
| 92 | // https://arduinojson.org/v7/api/jsonarray/set/ |
| 93 | bool set(JsonArrayConst src) const { |
| 94 | if (!data_) |
| 95 | return false; |
| 96 | |
| 97 | clear(); |
| 98 | for (auto element : src) { |
| 99 | if (!add(element)) |
| 100 | return false; |
| 101 | } |
| 102 | |
| 103 | return true; |
| 104 | } |
| 105 | |
| 106 | // Removes the element at the specified iterator. |
| 107 | // https://arduinojson.org/v7/api/jsonarray/remove/ |