Skip to content

Instantly share code, notes, and snippets.

@mrw34

mrw34/file.sh

Created Oct 2, 2020
Embed
What would you like to do?
CSV to JSON using Python 2
python -c "import csv,json,fileinput;print(json.dumps(list(csv.DictReader(fileinput.input()))))" file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment