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

◆ Json() [13/14]

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

Definition at line 1648 of file json.h.

1651 auto ptr = m_value->data.ptr<JsonArray>();
1652 if (ptr) {
1653 for (const auto& item : vec) {
1654 ptr->push_back(fl::make_shared<JsonValue>(item)); // Use float directly
1655 }
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 m_value, and fl::make_shared().

+ Here is the call graph for this function: