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

◆ operator[]() [2/4]

const Json fl::Json::operator[] ( const fl::string & key) const
inline

Definition at line 2066 of file json.h.

2068 {
2069 if (!m_value || !m_value->is_object()) {
2070 return Json(nullptr);
2071 }
2072 auto obj = m_value->as_object();
2073 if (obj && obj->find(key) != obj->end()) {
2074 return Json((*obj)[key]);
2075 }
fl::shared_ptr< JsonValue > m_value
Definition json.h:1622
Json()
Definition json.h:1626