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

◆ accept() [10/10]

template<typename Sink>
void fl::SerializerVisitor< Sink >::accept ( const json_object & obj)
inline

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

1348 {
1349 if (obj.empty()) {
1350 append("{}");
1351 return;
1352 }
1353 out.push_back('{');
1354 bool first = true;
1355 for (const auto& kv : obj) {
1356 if (!first) out.push_back(',');
1357 first = false;
1358 append_escaped(kv.first);
1359 out.push_back(':');
1360 serialize_value(kv.second ? kv.second.get() : &get_null_json_value());
1361 }
1362 out.push_back('}');
1363 }
void append_escaped(const fl::string &str) FL_NO_EXCEPT
void serialize_value(const json_value *value) FL_NO_EXCEPT
void append(const char *str) FL_NO_EXCEPT

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

+ Here is the call graph for this function: