Configuration Loading
Since the required configurations are stored in JSON files, we need to first load them in order to use. To handle JSON files, first import json
module in our Python code, then use a with
statement to safely open the configuration file, and load the infomation into a python dictionary.
with open("../config/fake_log_gen.json") as config_file:
config = json.load(config_file)