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

◆ accept() [10/10]

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

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

1343 {
1344 if (obj.empty()) {
1345 append("{}");
1346 return;
1347 }
1348 out.push_back('{');
1349 bool first = true;
1350 for (const auto& kv : obj) {
1351 if (!first) out.push_back(',');
1352 first = false;
1353 append_escaped(kv.first);
1354 out.push_back(':');
1355 serialize_value(kv.second ? kv.second.get() : &get_null_json_value());
1356 }
1357 out.push_back('}');
1358 }
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: