8 auto filecontentSPtr = std::make_shared<json>();
9 *filecontentSPtr = nlohmann::json::parse(*fileContentRawSPtr);
11 return filecontentSPtr;
15 std::string systemSettingsPath =
"settings/runtime_system.json";
19 auto filecontentSPtr = std::make_shared<json>();
20 *filecontentSPtr = nlohmann::json::parse(*fileContentRawSPtr)[key];
21 return filecontentSPtr;
28 std::shared_ptr<std::string> fileContent = std::make_shared<std::string>();
33 while(getline(file, line)) {
34 (*fileContent) += line;
41 throw std::runtime_error(
"Failed to load file.");