| 97 | } |
| 98 | |
| 99 | std::string JsonHelpers::getStringOrDefault( |
| 100 | const rapidjson::Value& json, |
| 101 | const std::string& key, |
| 102 | const std::string& defaultValue) { |
| 103 | const auto it = json.FindMember(key.c_str()); |
| 104 | return it == json.MemberEnd() |
| 105 | ? defaultValue |
| 106 | : JsonHelpers::getStringOrDefault(it->value, defaultValue); |
| 107 | } |
| 108 | |
| 109 | std::string JsonHelpers::getStringOrDefault( |
| 110 | const rapidjson::Value& json, |
no test coverage detected