Sign in
gfiber
/
vendor
/
google
/
afterquery
/
658412c6c5aaaac82e859ccf6df056e09994f3e4
/
.
/
csv2json.py
blob: ecfe04778529b57765a7e6873175d60896f839cb [
file
] [
log
] [
blame
]
#!/usr/bin/python
import
csv
import
json
import
sys
c
=
csv
.
reader
(
sys
.
stdin
)
rows
=
list
([[
col
.
decode
(
'latin1'
)
for
col
in
r
]
for
r
in
c
])
print
'jsonp('
json
.
dump
(
rows
,
sys
.
stdout
,
indent
=
2
)
print
');'