title: Python 3 wsgi - json response
body: <p>I use <code>uwsgi</code> for serving my web content and it works well when it comes to usual html pages:</p>
  
  <pre><code>return [b'&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello, world!&lt;/body&gt;&lt;/html&gt;']
  </code></pre>
  
  <p>But when I want to return <code>json</code>:</p>
  
  <pre><code>headers = [('content-type', 'application/json')]
  test = json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
  test1 = bytearray(test, 'utf8')
  
  start_response('200 OK', headers)
  return [test1]
  </code></pre>
  
  <p>the webserver returns nothing...there is no error, just empty response body... anybody could explain me why?</p>
  
  <p>thanks and greetings!</p>