import csv
import json

csvfile = open('data.csv', 'rU')
jsonfile = open('data.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')




csvfile = open('data-twoparents.csv', 'rU')
jsonfile = open('data-twoparents.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')



csvfile = open('data-twoparents-expenses.csv', 'rU')
jsonfile = open('data-twoparents-expenses.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "Clothing", "Internet", "Phone", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')

1492772aa155c6b578302e7b5d9439bd7b9a6946
<mask token>

<mask token>
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
<mask token>
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
<mask token>
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')

<mask token>
csvfile = open('data.csv', 'rU')
jsonfile = open('data.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
csvfile = open('data-twoparents.csv', 'rU')
jsonfile = open('data-twoparents.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
csvfile = open('data-twoparents-expenses.csv', 'rU')
jsonfile = open('data-twoparents-expenses.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'Clothing', 'Internet', 'Phone',
    'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')

import csv
import json
csvfile = open('data.csv', 'rU')
jsonfile = open('data.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
csvfile = open('data-twoparents.csv', 'rU')
jsonfile = open('data-twoparents.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')
csvfile = open('data-twoparents-expenses.csv', 'rU')
jsonfile = open('data-twoparents-expenses.json', 'w')
fieldnames = ('State', 'StateName', 'MinWage', 'Yearly', 'TakeHome', 'Food',
    'Housing', 'Transportation', 'Clothing', 'Internet', 'Phone',
    'CostOfLiving', 'MoneyRemaining')
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {}
for row in reader:
    final[row['State']] = row
json.dump(final, jsonfile)
jsonfile.write('\n')

import csv
import json

csvfile = open('data.csv', 'rU')
jsonfile = open('data.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')




csvfile = open('data-twoparents.csv', 'rU')
jsonfile = open('data-twoparents.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')



csvfile = open('data-twoparents-expenses.csv', 'rU')
jsonfile = open('data-twoparents-expenses.json', 'w')

fieldnames = ("State", "StateName", "MinWage", "Yearly", "TakeHome", "Food", "Housing", "Transportation", "Clothing", "Internet", "Phone", "CostOfLiving", "MoneyRemaining")
reader = csv.DictReader(csvfile, fieldnames, delimiter=',')
final = {};
for row in reader:
    final[row['State']] = row

json.dump(final, jsonfile)
jsonfile.write('\n')
