Sign in
gfiber
/
vendor
/
google
/
afterquery
/
9b5c55913f4a4b14c3bf5f8f3e65c52c2d82991a
/
.
/
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
');'