title: Can't Return JSON object using MongoEngine Pymongo with Django?
body: <p>So I'm trying to return a JSON object for a project.  I've spent a few hours trying to get Django just returning the JSON.</p>
  
  <p>Heres the view that we've been working with:</p>
  
  <pre><code>def json(request, first_name):
      user = User.objects.all()
      #user = User.objects.all().values()
      result = simplejson.dumps(user, default=json_util.default)
      return HttpResponse(result)
  </code></pre>
  
  <p>Here's my model:</p>
  
  <pre><code>class User(Document):  
      gender = StringField( choices=['male', 'female', 'Unknown']) 
      age = IntField()
      email = EmailField()
      display_name = StringField(max_length=50)
      first_name = StringField(max_length=50)
      last_name = StringField(max_length=50)
      location = StringField(max_length=50)
      status = StringField(max_length=50)
      hideStatus = BooleanField()
      photos = ListField(EmbeddedDocumentField('Photo')) 
      profile =ListField(EmbeddedDocumentField('ProfileItem'))
      allProfile = ListField(EmbeddedDocumentField('ProfileItem')) #only return for your own profile
  </code></pre>
  
  <p>This is what it's returning:</p>
  
  <pre><code>[&lt;User: User object&gt;, &lt;User: User object&gt;] is not JSON serializable
  </code></pre>
  
  <p>Any thoughts on how I can just return the JSON?</p>