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

◆ readJson()

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

Definition at line 112 of file file_system.cpp.hpp.

112 {
113 string text;
114 if (!readText(path, &text)) {
115 return false;
116 }
117
118 // Parse using the new json class
119 *doc = fl::json::parse(text);
120 return !doc->is_null();
121}
bool readText(const char *path, string *out)
static json parse(const fl::string &txt) FL_NOEXCEPT
Definition json.h:677

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

+ Here is the call graph for this function: