title: How do I JSON serialize a Python dictionary?
body: <p>I'm trying to make a Django function for JSON serializing something and returning it in an <code>HttpResponse</code> object.</p>
  
  <pre><code>def json_response(something):
      data = serializers.serialize("json", something)
      return HttpResponse(data)
  </code></pre>
  
  <p>I'm using it like this:</p>
  
  <pre><code>return json_response({ howdy : True })
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>"bool" object has no attribute "_meta"
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>EDIT: Here is the traceback:</p>
  
  <p><a href="http://dpaste.com/38786/" rel="noreferrer">http://dpaste.com/38786/</a></p>