def convert2json(dir_name):
    data = []
    for fname in os.listdir(dir_name):
        get_data(data, os.path.join(dir_name, fname))
    return data
def convert2json(dir_name):
    data = []
    for fname in os.listdir(dir_name):
        get_data(data, os.path.join(dir_name, fname))
    return data