Created
September 22, 2011 14:18
-
-
Save voluntas/1234880 to your computer and use it in GitHub Desktop.
simplejson.loads
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
Python 2.6.6 (r266:84292, Jun 16 2011, 16:59:16) | |
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import json | |
>>> json.__version__ | |
'1.9' | |
>>> json.loads('[["spam","eggs"]]') | |
[[u'spam', u'eggs']] | |
Python 2.7.1 (r271:86832, Dec 11 2010, 20:55:42) | |
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import json | |
>>> json.__version__ | |
'2.0.9' | |
>>> json.loads('[["spam","eggs"]]') | |
[[u'spam', u'eggs']] | |
>>> import simplejson | |
>>> simplejson.__version__ | |
'2.1.6' | |
>>> simplejson.loads('[["spam","eggs"]]') | |
[['spam', 'eggs']] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment