#!/usr/bin/python
import sys, csv, json

fname = sys.argv[1]
f = open(fname,"r")
fw = open("irecord.json","rw")

reader = csv.DictReader( open("iRecord_ExampleData.csv","r"))

#header
#reader.fieldnames 

res = []
n = reader.next()
if ( n ):
    res.append(n)

json.dump(res,fw)
close(fw)
close(f)

9b2fdf1f16f08bb2e510885852c8679a3578f070
<mask token>

<mask token>
if n:
    res.append(n)
json.dump(res, fw)
close(fw)
close(f)

<mask token>
fname = sys.argv[1]
f = open(fname, 'r')
fw = open('irecord.json', 'rw')
reader = csv.DictReader(open('iRecord_ExampleData.csv', 'r'))
res = []
n = reader.next()
if n:
    res.append(n)
json.dump(res, fw)
close(fw)
close(f)

import sys, csv, json
fname = sys.argv[1]
f = open(fname, 'r')
fw = open('irecord.json', 'rw')
reader = csv.DictReader(open('iRecord_ExampleData.csv', 'r'))
res = []
n = reader.next()
if n:
    res.append(n)
json.dump(res, fw)
close(fw)
close(f)

#!/usr/bin/python
import sys, csv, json

fname = sys.argv[1]
f = open(fname,"r")
fw = open("irecord.json","rw")

reader = csv.DictReader( open("iRecord_ExampleData.csv","r"))

#header
#reader.fieldnames 

res = []
n = reader.next()
if ( n ):
    res.append(n)

json.dump(res,fw)
close(fw)
close(f)
