- No error code is returned and it crashes if the "key" is not found. I am new to this library, am I missing something? Could it return error code, or the only way to avoid crashing is to use exception handling?
json jProfile;
std::ifstream f(profileFile);
f >> jProfile;
jProfile.at("CONFIG").at(std::to_string(1)).get_to(configFileName);
json jProfile;
std::ifstream f(profileFile);
f >> jProfile;
jProfile.at("CONFIG").at(std::to_string(1)).get_to(configFileName);