| 132 | } |
| 133 | |
| 134 | Json::Value parseJsonFileToJsonValue(const char *jsonPath) { |
| 135 | std::string configDoc = readFile(jsonPath); |
| 136 | Json::CharReaderBuilder rbuilder; |
| 137 | std::istringstream input(configDoc); |
| 138 | |
| 139 | Json::Value root; |
| 140 | std::string errs; |
| 141 | Json::parseFromStream(rbuilder, input, &root, &errs); |
| 142 | std::cout << "parsing json: " << errs << jsonPath << std::endl; |
| 143 | return root; |
| 144 | } |
| 145 | |
| 146 | std::string getNormalizedPath(std::string Path) { |
| 147 |