Skip to content

Instantly share code, notes, and snippets.

@xen
Created August 3, 2012 02:06
Show Gist options
  • Select an option

  • Save xen/3243474 to your computer and use it in GitHub Desktop.

Select an option

Save xen/3243474 to your computer and use it in GitHub Desktop.
from cjson import decode, encode
with open('index.json') as f:
data = f.read()
jsnd = decode(data)
encode(jsnd)
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