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

◆ accept() [9/10]

void fl::SerializerVisitor::accept ( const json_array & arr)
inline

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

1198 {
1199 if (arr.empty()) {
1200 append("[]");
1201 return;
1202 }
1203 out.push_back('[');
1204 bool first = true;
1205 for (const auto& item : arr) {
1206 if (!first) out.push_back(',');
1207 first = false;
1208 serialize_value(item ? item.get() : &get_null_json_value());
1209 }
1210 out.push_back(']');
1211 }
json_value & get_null_json_value()
Definition json.cpp.hpp:64
fl::deque< char > & out
void append(const char *str)
void serialize_value(const json_value *value)

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

+ Here is the call graph for this function: