Skip to content

Instantly share code, notes, and snippets.

@muzizongheng
Created July 18, 2013 06:04
Show Gist options
  • Save muzizongheng/6027019 to your computer and use it in GitHub Desktop.
Save muzizongheng/6027019 to your computer and use it in GitHub Desktop.
read dict string and convert string to dict object
data = r.read().decode('utf-8')
reader = json.JSONDecoder()
responseData = reader.decode(data)
return responseData['data']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment