title: JSON serialize Django Queryset with values being called. Is there anything wrong with my approach?
body: <p>Here is the problem: Django's serializer doesn't support dictionaries and simplejson doesn't support Django Querysets. See <a href="https://stackoverflow.com/questions/2249792/json-serializing-django-models-with-simplejson">JSON Serializing Django Models with simplejson</a></p>
  
  <p>I was wondering if there is anything wrong with my solution. I have something like:</p>
  
  <pre><code>people = People.objects.all().values('name', 'id')
  json.dumps(list(people))
  </code></pre>
  
  <p>I am still a newbie with Python/Django. Is casting the <code>QuerySet</code> to a list a bad idea?  Is it more efficient to use the <code>DjangoJSONEncoder</code> suggested in the other topic? </p>