FastLED 3.9.15
Loading...
Searching...
No Matches

◆ readJson()

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

Definition at line 101 of file file_system.cpp.

101 {
102 string text;
103 if (!readText(path, &text)) {
104 return false;
105 }
106
107 // Parse using the new Json class
108 *doc = fl::Json::parse(text);
109 return !doc->is_null();
110}
bool readText(const char *path, string *out)
static Json parse(const fl::string &txt)
Definition json.h:2126

References fl::Json::is_null(), fl::Json::parse(), and readText().

+ Here is the call graph for this function: