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

◆ from_char()

static json fl::json::from_char ( char c)
inlinestatic

Definition at line 302 of file json.h.

304 {
305 json result;
306 auto value = fl::make_shared<json_value>(fl::string(1, c));
307 //FL_WARN("Created json_value with string: " << value->is_string() << ", int: " << value->is_int());
308 result.mValue = value;
309 //FL_WARN("json has string: " << result.is_string() << ", int: " << result.is_int());
T value() const FL_NO_EXCEPT
Definition json.h:497
json() FL_NO_EXCEPT
Definition json.h:267
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References json(), fl::FL_NO_EXCEPT, fl::adl_barrier::make_shared(), and value().

+ Here is the call graph for this function: