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

Method getOrAddMember

src/ArduinoJson/Variant/VariantData.hpp:351–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350 template <typename TAdaptedString>
351 VariantData* getOrAddMember(TAdaptedString key, ResourceManager* resources) {
352 if (key.isNull())
353 return nullptr;
354 auto obj = isNull() ? &toObject() : asObject();
355 if (!obj)
356 return nullptr;
357 return obj->getOrAddMember(key, resources);
358 }
359
360 bool isArray() const {
361 return type_ == VariantType::Array;

Callers

nothing calls this directly

Calls 2

isNullFunction · 0.70
isNullMethod · 0.45

Tested by

no test coverage detected