Created
August 3, 2012 02:06
-
-
Save xen/3243474 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
| from cjson import decode, encode | |
| with open('index.json') as f: | |
| data = f.read() | |
| jsnd = decode(data) | |
| encode(jsnd) |
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 simplejson as json | |
| f = open('index.json') | |
| json.dumps(json.load(f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment