Skip to content

Instantly share code, notes, and snippets.

@alfredplpl
Created February 24, 2014 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredplpl/9189521 to your computer and use it in GitHub Desktop.
Save alfredplpl/9189521 to your computer and use it in GitHub Desktop.
>>> 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