def json_2_yaml()

in lambda/source/utils.py [0:0]


def json_2_yaml(input_file, out_file):
    ''' Convert json file to yaml file '''
    with open(input_file, 'r') as json_file:
        json_content = json.load(json_file)
        with open(out_file, 'w') as yaml_file:
            yaml.dump(json_content, yaml_file)
    return