Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bash python csv to json

cat my.csv | python -c 'import csv, json, sys; print(json.dumps([dict(r) for r in csv.DictReader(sys.stdin)]))'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #python #csv #json
ADD COMMENT
Topic
Name
7+3 =