Get list-of-strings value from object.
| 208 | |
| 209 | // Get list-of-strings value from object. |
| 210 | std::vector<std::string> ReadList(Json::Value const& arr) |
| 211 | { |
| 212 | std::vector<std::string> result; |
| 213 | |
| 214 | if (arr.isArray()) { |
| 215 | for (Json::Value const& val : arr) { |
| 216 | if (val.isString()) { |
| 217 | result.push_back(val.asString()); |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | return result; |
| 223 | } |
| 224 | |
| 225 | std::vector<std::string> ReadList(Json::Value const& data, char const* key) |
| 226 | { |
no test coverage detected
searching dependent graphs…