| 283 | } |
| 284 | |
| 285 | std::string Baseline::getJSONValue(nlohmann::json& target, const std::string& key) { |
| 286 | std::lock_guard<std::mutex> autoLock(locker); |
| 287 | std::string jsonKey; |
| 288 | auto json = FindJSON(target, key, &jsonKey); |
| 289 | auto value = (*json)[jsonKey]; |
| 290 | return value != nullptr ? value.get<std::string>() : ""; |
| 291 | } |
| 292 | |
| 293 | void Baseline::setJSONValue(nlohmann::json& target, const std::string& key, |
| 294 | const std::string& value) { |
nothing calls this directly
no test coverage detected