Fix const correctness for loadConfig class members
Const correctness is an important C++ feature to spot problems at compile time like the incorrect use
of json::empty()
accidentally modifying the json
object. This MR fixes loadConfig
for now by
changing the function signature to loadConfig(const json&)
.