Commits

Ed Brannin committed cb8929d Draft

Now producing json instead of pretty-printing

Comments (0)

Files changed (1)

springboard_to_d3.py

   return answer
 
 if __name__ == '__main__':
-  with open("springboard.json") as infile:
-    pprint.pprint(springboard_to_d3(infile))
+  import sys
+  with open(sys.argv[1]) as infile:
+    print json.dumps(springboard_to_d3(infile))