code: def load_config(json_path):
    
    with open(json_path, 'r') as json_file:
      config = json.loads(json_file.read())
    # sanity-test the config:
    assert(config['tree'][0]['page'] == 'index')
    return config
docs: Load config info from a .json file and return it.