title: How do I serialize a class with Django and non-Django properties for Json ajax output?
body: <p>Lets say have this object:</p>
  
  <pre><code>class Zoo:
      def __init__(self, animal):
          self.animal = animal # a Django Model Animal object
          self.list_of_sounds = [] # type: list[a Django Model Sound Object]
          self.add_sounds()
  
      def add_sounds(self):
          for id in list(range(0, 5)):
              AnimalSound(animal_id=id, noise='woof')
              self.list_of_sounds.append(AnimalSound)
  
  
  
  animal = Animal.objects.filter(pk=1).first()
  zoo = Zoo(animal)
  json_to_output_via_ajax = serializers.serialize('json', [zoo])
  </code></pre>
  
  <p>This throws an error: </p>
  
  <pre><code>{AttributeError}'Zoo' object has no attribute '_meta' because zoo has a the property list_of_sounds which is not a Django object. 
  </code></pre>
  
  <p>What is the best way to send this object's JSON via ajax?</p>