Skip to content

Instantly share code, notes, and snippets.

@clofresh
Created March 22, 2013 08:08
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 clofresh/5219682 to your computer and use it in GitHub Desktop.
Save clofresh/5219682 to your computer and use it in GitHub Desktop.
try:
import simplejson as json
print json, json.__version__
except ImportError:
try:
import json
print json, json.__version__
except ImportError:
import minjson
class json(object):
@staticmethod
def dumps(data):
return minjson.write(data)
@staticmethod
def loads(data):
return minjson.safeRead(data)
print minjson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment