MCPcopy Create free account
hub / github.com/FastLED/FastLED / to_string

Method to_string

src/fl/stl/json.cpp.hpp:1113–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113fl::string json_value::to_string() const {
1114 // Parse the JSON value to a string, then parse it back to a json object,
1115 // and use the working to_string_native method
1116 // This is a workaround to avoid reimplementing the serialization logic
1117
1118 // First, create a temporary json document with this value
1119 json temp;
1120 // Use the public method to set the value
1121 temp.set_value(fl::make_shared<json_value>(*this));
1122 // Use the working implementation
1123 return temp.to_string_native();
1124}
1125
1126// Recursive serializer visitor - declared and defined at file scope
1127// Receives direct references to variant data (no copies) and handles serialization recursively

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.80
to_string_nativeMethod · 0.80

Tested by

no test coverage detected