title: How to include pictures bytes to a JSON with python? (encoding issue)
body: <p>I would like to include picture bytes into a JSON, but I struggle with a encoding issue:</p>
  
  <pre><code>import urllib
  import json
  
  data = urllib.urlopen('https://www.python.org/static/community_logos/python-logo-master-v3-TM-flattened.png').read()
  json.dumps({'picture' : data})
  </code></pre>
  
  <p>UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte</p>
  
  <p>I don't know how to deal with that issue since I am handling an image, so I am a bit confused about this encoding issue. I am using python 2.7. Does anyone can help me? :)</p>