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

◆ json() [13/14]

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

Definition at line 156 of file json.h.

159 auto ptr = mValue->data.ptr<json_array>();
160 if (ptr) {
161 for (const auto& item : vec) {
162 ptr->push_back(fl::make_shared<json_value>(item)); // Use float directly
163 }
fl::shared_ptr< json_value > mValue
Definition json.h:130
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
fl::vector< fl::shared_ptr< json_value > > json_array
Definition types.h:33

References FL_NOEXCEPT, and fl::make_shared().

+ Here is the call graph for this function: