Created
February 5, 2021 16:27
-
-
Save parth-paradkar/80a53b829ef8cbd57882c67dcd00a240 to your computer and use it in GitHub Desktop.
Revisions
-
parth-paradkar created this gist
Feb 5, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ from sys import argv import csv import json with open(argv[1], 'r') as csv_file: reader = csv.DictReader(csv_file) data = [d for d in reader] with open("result.json", 'w') as f: json.dump(data, f)