| 137 | } |
| 138 | |
| 139 | std::string CicadaJSONItem::getStringOfObject(const std::string &name) const |
| 140 | { |
| 141 | if (nullptr == mJSON) { |
| 142 | return ""; |
| 143 | } |
| 144 | |
| 145 | if (cJSON_HasObjectItem(mJSON, name.c_str())) { |
| 146 | cJSON *json = cJSON_GetObjectItem(mJSON, name.c_str()); |
| 147 | |
| 148 | if (json != nullptr) { |
| 149 | return PrintJson(json); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | return ""; |
| 154 | } |
| 155 | |
| 156 | CicadaJSONItem CicadaJSONItem::getItem(const std::string &name) const |
| 157 | { |
nothing calls this directly
no test coverage detected