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

◆ write_to()

void fl::json::write_to ( WriteFn fn,
void * ctx ) const

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

1432 {
1433 if (!fn) return;
1434 if (!mValue) {
1435 fn(ctx, "null", 4);
1436 return;
1437 }
1438 JsonChunkSink sink(fn, ctx);
1439 SerializerVisitor<JsonChunkSink> write{sink};
1440 write.serialize_value(mValue.get());
1441 sink.flush();
1442}
fl::shared_ptr< json_value > mValue
Definition json.h:263

References fl::FL_NO_EXCEPT, mValue, and fl::SerializerVisitor< Sink >::serialize_value().

+ Here is the call graph for this function: