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

◆ parseJson()

bool fl::parseJson ( const char * json,
fl::JsonDocument * doc,
Str * _error )

Definition at line 6 of file json.cpp.

6 {
7 #if !FASTLED_ENABLE_JSON
8 if (_error) {
9 *_error = "JSON not enabled";
10 }
11 return false;
12 #else
13 FLArduinoJson::DeserializationError error = deserializeJson(*doc, json);
14 if (error) {
15 if (_error) {
16 *_error = error.c_str();
17 }
18 return false;
19 }
20 return true;
21 #endif
22}
const char * c_str() const
Definition str.h:247

References fl::StrN< SIZE >::c_str().

Referenced by fl::ScreenMap::ParseJson(), and fl::FileSystem::readJson().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: