i am trying out the code below and the attribute error popped up. I am new to Python and would appreciate to know what I can do to correct this error. 

```
    with open(csv_file_path,'wb+') as fout:
            csv_file = csv.writer(fout)
            csv_file.writerow(list(column_names))
            with open(json_file_path) as fin:
                for line in fin:
                    line_contents = json.loads(line)
                    csv_file.writerow(get_row(line_contents,column_names))

    read_and_write_file(json_file,csv_file,column_names)

    if isinstance(line_value,unicode):
                row.append({0}.format(line_value.encode('utf-8')))

Traceback (most recent call last):
  File "Json_convert.py", line 89, in <module>
    read_and_write_file(json_file, csv_file, column_names)
  File "Json_convert.py", line 19, in read_and_write_file
    csv_file.writerow(get_row(line_contents,column_names))
  File "Json_convert.py", line 62, in get_row
    row.append({0}.format(line_value.encode('utf-8')))
AttributeError: 'set' object has no attribute 'format'

```