title: How to create JSON-Response when Entities are referenced via Ancestor?
body: <p>Maybe my question is somehow unspecific, sorry for that. I'm learning python and app engine (webapp2) at the moment.</p>
  
  <p>I have this class:</p>
  
  <pre><code>class Ice(db.Model):
  
      """Models an individual Guestbook entry with an author, content, and date."""
      name = db.StringProperty()
      description = db.StringProperty(multiline=True)
      date = db.DateTimeProperty(auto_now_add=True)
  
      def getTags(self):
          return Tag.all().ancestor(self).fetch(10)
  </code></pre>
  
  <p>Tags are referenced via ancestor.
  When I use a jinja-template i can call <code>ice.getTags()</code> foreach Ice.
  <br> Now i want to serialize my Ice-object to JSON and want to have all Tags that belong to the Ice-object in my JSON-Output.</p>
  
  <p>This does serialisation for me:<br>
  It works okay, but it doesn't include the Tags.<br>
  I'm feeling, that i have to declare Tags as Ice-Attribute, but i don't know how.</p>
  
  <pre><code>class IceHandler(basehandler.BaseHandler):
  
      def get(self):
          ice_query = model.Ice.all().order('-date')
          ices = ice_query.fetch(10)
  
          self.response.write(json.encode(ices))
  </code></pre>
  
  <p>Thanks!</p>