FastLED 3.10.10
Loading...
Searching...
No Matches

◆ accept() [9/10]

template<typename Sink>
void fl::SerializerVisitor< Sink >::accept ( const json_array & arr)
inline

Definition at line 1333 of file json.cpp.hpp.

1333 {
1334 if (arr.empty()) {
1335 append("[]");
1336 return;
1337 }
1338 out.push_back('[');
1339 bool first = true;
1340 for (const auto& item : arr) {
1341 if (!first) out.push_back(',');
1342 first = false;
1344 }
1345 out.push_back(']');
1346 }
void serialize_value(const json_value *value) FL_NO_EXCEPT
void append(const char *str) FL_NO_EXCEPT

References append(), fl::FL_NO_EXCEPT, fl::get_null_json_value(), out, and serialize_value().

+ Here is the call graph for this function: