import json


def parse_config_file(config_path):
    """ Loads config file like this:
    {'bit_str': '0110100000100000',
     'freq': 315000000,
     'baud': 410,
     'sample_rate': 2000000,
     'amp_map': {'LOW': 0.28, 'HIGH': 1.4},
     'header_len': 3.85,
     'space_len': 3.78
    }
    """
    with open(config_path, 'r') as f:
        config_dict = json.load(f)
    return config_dict