Convert a CSV to a JSON Object Based on a Template

Closed - This job posting has been filled and work has been completed.

Job Description

I have a CSV file that I need converted into the form of a JSON object via whatever means necessary. You could write a python script to do this or if you're quick with your keyboard and mouse, you can do it all manually. It's entirely up to you.

The CSV file looks something like this:

CorV type phoneme_CMU grapheme example
vowel bv AE A c(a)t
vowel bv EH A (a)ny
vowel bv AA A w(a)sh
vowel bv AH A (A)lask(a)
vowel bv EY A t(a)ble
vowel bv IH A wom(a)n

The template (correct result for the first and second row) is as follows:

'AE': {
grapheme: 'a',
example: 'c(a)t',
type: 'bv',
CorV: 'vowel'
},
'EH': {
grapheme: 'a',
example: '(a)ny',
type: 'bv',
CorV: 'vowel'
}

If you're familiar with JSON and CSV as well as a scripting language, you should have no trouble getting this done.