FastLED 3.9.15
Loading...
Searching...
No Matches

◆ set() [4/9]

void fl::Json::set ( const fl::string & key,
const Json & value )
inline

Definition at line 2149 of file json.h.

2151 {
2152 if (!m_value || !m_value->is_object()) {
2154 }
2155 // Directly assign the value to the object without going through Json::operator[]
2156 auto objPtr = m_value->data.ptr<JsonObject>();
2157 if (objPtr) {
2158 // Create or update the entry directly
2159 (*objPtr)[key] = value.m_value;
T value() const
Definition json.h:1802
fl::shared_ptr< JsonValue > m_value
Definition json.h:1622
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348
fl::HashMap< fl::string, fl::shared_ptr< JsonValue > > JsonObject
Definition json.h:171

References Json(), m_value, fl::make_shared(), and value().

Referenced by fl::ScreenMap::toJson().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: