Advertisement
metalx1000

CSV to JSON Python one liner

May 18th, 2017
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. python -c "import csv,json;print json.dumps(list(csv.reader(open('csv_file.csv'))))"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement