title: Converting mongoengine objects to JSON
body: <p>i tried  to fetch data from mongodb using mongoengine with flask. query is work perfect the problem is when i convert query result into json its show only fields name.</p>
  
  <p>here is my code</p>
  
  <p>view.py</p>
  
  <pre><code>from model import Users
  result = Users.objects()
  print(dumps(result))
  </code></pre>
  
  <p>model.py</p>
  
  <pre><code>class Users(DynamicDocument):
      meta = {'collection' : 'users'}
      user_name = StringField()
      phone = StringField()
  </code></pre>
  
  <p><strong>output</strong></p>
  
  <pre><code>[["id", "user_name", "phone"], ["id", "user_name", "phone"]]
  </code></pre>
  
  <p>why its show only fields name ?</p>