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