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

◆ operator=() [6/9]

Json & fl::Json::operator= ( fl::vector< float > vec)
inline

Definition at line 1718 of file json.h.

1720 {
1722 auto ptr = m_value->data.ptr<JsonArray>();
1723 if (ptr) {
1724 for (const auto& item : vec) {
1725 ptr->push_back(fl::make_shared<JsonValue>(item)); // Use float directly
1726 }
1727 }
fl::shared_ptr< JsonValue > m_value
Definition json.h:1622
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348
fl::vector< fl::shared_ptr< JsonValue > > JsonArray
Definition json.h:170

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

+ Here is the call graph for this function: