title: How to serialize db.Model objects to json?
body: <p>When using</p>
  
  <pre><code>from django.utils import simplejson
  </code></pre>
  
  <p>on objects of types that derive from <code>db.Model</code> it throws exceptions. How to circumvent this?</p>