Created
April 27, 2015 06:03
-
-
Save varunity/571239e6df7240210d26 to your computer and use it in GitHub Desktop.
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 characters
import csv | |
import json | |
with open('data.json') as data_file: | |
x = json.load(data_file) | |
f = csv.writer(open("20150425.csv", "wb+")) | |
# Optional CSV Header - uncomment if needed | |
#f.writerow(["name", "creditcard"]) | |
for z in x: | |
f.writerow([z["name"], | |
z["creditcard"]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment