FastLED 3.10.9
Loading...
Searching...
No Matches

◆ accept() [9/10]

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

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

1328 {
1329 if (arr.empty()) {
1330 append("[]");
1331 return;
1332 }
1333 out.push_back('[');
1334 bool first = true;
1335 for (const auto& item : arr) {
1336 if (!first) out.push_back(',');
1337 first = false;
1339 }
1340 out.push_back(']');
1341 }
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: