Skip to main content

A very quick example of solution:

import csv

output = []
with open('your_file.csv', 'rb') as csvfile:
    reader = csv.DictReader(csvreadercsvfile)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)

A very quick example of solution:

import csv

output = []
with open('your_file.csv', 'rb') as csvfile:
    reader = csv.DictReader(csvreader)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)

A very quick example of solution:

import csv

output = []
with open('your_file.csv', 'rb') as csvfile:
    reader = csv.DictReader(csvfile)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)
added 6 characters in body
Source Link
Andrii Rusanov
  • 4.6k
  • 2
  • 41
  • 55

A very quick example of solution:

import csv

output = []
with open('your_file.csv', 'rb') as csvfile:
    reader = csv.DictReader(csvreader)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)

A very quick example of solution:

import csv

output = []
with open('your_file.csv') as csvfile:
    reader = csv.DictReader(csvreader)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)

A very quick example of solution:

import csv

output = []
with open('your_file.csv', 'rb') as csvfile:
    reader = csv.DictReader(csvreader)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)
Source Link
Andrii Rusanov
  • 4.6k
  • 2
  • 41
  • 55

A very quick example of solution:

import csv

output = []
with open('your_file.csv') as csvfile:
    reader = csv.DictReader(csvreader)
    output = [item for item in reader]
json.dump(open('your_file.json'), output)