blob: 20c264d912f97386268eec7a0dd25aac1ef55a74 (
plain)
1
2
3
4
5
6
7
8
9
|
import csv
import json
csvfile = open('kurse.csv', 'r')
jsonfile = open('kurse.json', 'w')
reader = csv.DictReader( csvfile)
out = json.dumps( [ row for row in reader ] )
jsonfile.write(out)
|