Skip to content

Instantly share code, notes, and snippets.

@devhero
Created September 11, 2017 09:14
Show Gist options
  • Save devhero/4411060dc1b65a4fe70f4ef1fe0d293f to your computer and use it in GitHub Desktop.
Save devhero/4411060dc1b65a4fe70f4ef1fe0d293f to your computer and use it in GitHub Desktop.
python json - the JSON object must be str, not 'bytes'
data = json.loads(request.get_data(as_text=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment