title: How to serialize Python dict to JSON
body: <p>So I have some python dict that I want to serialize to JSON</p>
  
  <pre><code>{'someproperty': 0, 'anotherproperty': 'value', 'propertyobject': SomeObject(someproperty=0, anotherproperty=0)}
  </code></pre>
  
  <p>but <code>json.dumps</code> throws a <code>TypeError: SomeObject(someproperty=0, anotherproperty=0) is not JSON serializable</code></p>
  
  <p>So how can I serialize my python dict properly?</p>