import csv
import json
d = []
with open('questions.csv') as csvfile:
	reader = csv.DictReader(csvfile)
	for row in reader:
		#print(row['question'], row['image'])
		d.append([row["question"].strip(), row['image'].strip()])

#print(d)
#print(json.dumps(d))
f = open('questions.json', 'w')
f.write(json.dumps(d))
import csv
import json
d = []
with open('questions.csv') as csvfile:
	reader = csv.DictReader(csvfile)
	for row in reader:
		#print(row['question'], row['image'])
		d.append([row["question"].strip(), row['image'].strip()])

#print(d)
#print(json.dumps(d))
f = open('questions.json', 'w')
f.write(json.dumps(d))
#print(row['question'], row['image']) #print(d) #print(json.dumps(d))