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

◆ accept() [10/10]

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

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

1213 {
1214 if (obj.empty()) {
1215 append("{}");
1216 return;
1217 }
1218 out.push_back('{');
1219 bool first = true;
1220 for (const auto& kv : obj) {
1221 if (!first) out.push_back(',');
1222 first = false;
1223 append_escaped(kv.first);
1224 out.push_back(':');
1225 serialize_value(kv.second ? kv.second.get() : &get_null_json_value());
1226 }
1227 out.push_back('}');
1228 }
json_value & get_null_json_value()
Definition json.cpp.hpp:64
void append_escaped(const fl::string &str)
fl::deque< char > & out
void append(const char *str)
void serialize_value(const json_value *value)

References append(), append_escaped(), fl::flat_map< Key, Value, Less >::empty(), fl::get_null_json_value(), out, and serialize_value().

+ Here is the call graph for this function: