MCPcopy Create free account
hub / github.com/FastLED/FastLED / readJson

Method readJson

src/fl/system/file_system.cpp.hpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool FileSystem::readJson(const char *path, json *doc) {
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}
122
123bool FileSystem::readScreenMaps(const char *path,
124 fl::flat_map<string, ScreenMap> *out, string *error) {

Callers

nothing calls this directly

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected