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

◆ write_to()

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

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

1437 {
1438 if (!fn) return;
1439 if (!mValue) {
1440 fn(ctx, "null", 4);
1441 return;
1442 }
1443 JsonChunkSink sink(fn, ctx);
1444 SerializerVisitor<JsonChunkSink> write{sink};
1445 write.serialize_value(mValue.get());
1446 sink.flush();
1447}
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: