json-to-csv
json-to-csv copied to clipboard
Changing delimiter to semicolon and removing quotation marks
trafficstars
Changing the delimiter to semicolon and removing quotation marks will help to open the csv file in excel. Can you please add an option for that? Also in comment would be very helpful - so everyone can use what he needs :)
For whoever will find this useful - to remove quotation, change
writer = csv.DictWriter(f, header, quoting=csv.QUOTE_ALL)
to
writer = csv.DictWriter(f, header, quoting=csv.QUOTE_NONE)
As reference for available options: https://docs.python.org/3/library/csv.html