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

◆ readJson()

bool fl::FileSystem::readJson ( const char * path,
json * doc )

Definition at line 117 of file fs.cpp.hpp.

117 {
118 string text;
119 if (!readText(path, &text)) {
120 return false;
121 }
122
123 // Parse using the new json class
124 *doc = fl::json::parse(text);
125 return !doc->is_null();
126}
bool readText(const char *path, string *out) FL_NO_EXCEPT
Definition fs.cpp.hpp:191
static json parse(const fl::string &txt) FL_NO_EXCEPT
Definition json.h:842

References fl::FL_NO_EXCEPT, fl::json::parse(), and fl::readText().

+ Here is the call graph for this function: