convert json to csv,csv_file.close()