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

◆ readJson()

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

Definition at line 103 of file file_system.cpp.

103 {
104 string text;
105 if (!readText(path, &text)) {
106 return false;
107 }
108
109 // Parse using the new Json class
110 *doc = fl::Json::parse(text);
111 return !doc->is_null();
112}
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: