Created
February 22, 2016 22:50
-
-
Save woodphil/75c6fbd20b4a0c489d51 to your computer and use it in GitHub Desktop.
json double quotes format
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
import simplejson as json | |
s = "{'username':'dfdsfdsf'}" #1 INCORRECT, uses '' for quotes in strings | |
s = '{"username":"dfdsfdsf"}' #2 CORRECT, uses "" for quotes in strings | |
j = json.loads(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment