MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / set

Function set

src/ArduinoJson/Object/JsonObject.hpp:89–100  ·  view source on GitHub ↗

Copies an object. https://arduinojson.org/v7/api/jsonobject/set/

Source from the content-addressed store, hash-verified

87 // Copies an object.
88 // https://arduinojson.org/v7/api/jsonobject/set/
89 bool set(JsonObjectConst src) {
90 if (!data_ || !src.data_)
91 return false;
92
93 clear();
94 for (auto kvp : src) {
95 if (!operator[](kvp.key()).set(kvp.value()))
96 return false;
97 }
98
99 return true;
100 }
101
102 // Gets or sets the member with specified key.
103 // https://arduinojson.org/v7/api/jsonobject/subscript/

Callers

nothing calls this directly

Calls 4

setMethod · 0.80
keyMethod · 0.80
clearFunction · 0.70
valueMethod · 0.45

Tested by

no test coverage detected