Implementing a configuration class for retrieving and storing config from/to a json file