This is a little script that can convert any JSON file to CSV that can be used in D3.
I usually get confused when I downloaded a JSON file, finding the correct key or value I want to call in the JSON document. This little tool helps me to visualize the JSON content into a tree struccture.
Simply type this command in Terminal:
$ python convertToCSV.py [inputFileName].json
The output will shows up in the "output" directory.
Tested with Python 3.4.3.
You can view the visualized tree by open "/output/tidyjsontree.html", powered by D3.js and the "Tidy Tree" block made by Mike Bostock.