| 204 | } |
| 205 | |
| 206 | Json::Value createJSONAlias(std::string const &path, |
| 207 | Json::Value const &destination) { |
| 208 | Json::Value ret{Json::nullValue}; |
| 209 | if (path.empty()) { |
| 210 | return ret; |
| 211 | } |
| 212 | if (destination.isNull()) { |
| 213 | return ret; |
| 214 | } |
| 215 | ret = Json::objectValue; |
| 216 | ret[path] = destination; |
| 217 | return ret; |
| 218 | } |
| 219 | |
| 220 | Json::Value convertRouteToAlias(Json::Value const &val) { |
| 221 | Json::Value ret{val}; |
no test coverage detected