FastLED 3.10.8
Loading...
Searching...
No Matches

◆ accept() [10/10]

void fl::SerializerVisitor::accept ( const json_object & obj)
inline

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

1241 {
1242 if (obj.empty()) {
1243 append("{}");
1244 return;
1245 }
1246 out.push_back('{');
1247 bool first = true;
1248 for (const auto& kv : obj) {
1249 if (!first) out.push_back(',');
1250 first = false;
1251 append_escaped(kv.first);
1252 out.push_back(':');
1253 serialize_value(kv.second ? kv.second.get() : &get_null_json_value());
1254 }
1255 out.push_back('}');
1256 }
json_value & get_null_json_value() FL_NO_EXCEPT
Definition json.cpp.hpp:64
void serialize_value(const json_value *value) FL_NO_EXCEPT
void append_escaped(const fl::string &str) FL_NO_EXCEPT
fl::deque< char > & out
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: