Created
March 22, 2013 08:08
-
-
Save clofresh/5219682 to your computer and use it in GitHub Desktop.
This file contains 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
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