Skip to content

Instantly share code, notes, and snippets.

@alfredplpl
Created February 24, 2014 14:40
>>> import json
>>> testHash={"A":10,"B":20,"C":30.0}
with open("E:/test.json","w") as f:
json.dump(testHash,f)
>>> testHash
{'A': 10, 'C': 30.0, 'B': 20}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment