title: TypeError: 'PollingException' object is not iterable, python error when posting a request
body: <p>I try to POST a python object to my endpoint</p>
  
  <pre><code> def test_atg_polling_exception(self):
          status=200
          jsonEncoder = CustomJSONEncoder()      
          a= PollingException('System.OutOfMemoryException','System.OutOfMemoryException','System.OutOfMemoryException','2009-02-15T00:00:00Z')
          headers = {'Content-type': 'application/json'}
          response = requests.post("http://localhost:5000/PollingEngineExceptions",data=a,headers=headers)
          print response.status_code
          assert status not in response.status_code
  </code></pre>
  
  <p>But getting </p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/ratha/projects/test711/ATGWS/tests/TestEndpoint.py", line 46, in test_atg_polling_exception
      response = requests.post("http://localhost:5000/PollingEngineExceptions",data=a,headers=headers)
    File "/Users/ratha/Library/Python/2.7/lib/python/site-packages/requests/api.py", line 112, in post
      return request('post', url, data=data, json=json, **kwargs)
    File "/Users/ratha/Library/Python/2.7/lib/python/site-packages/requests/api.py", line 58, in request
      return session.request(method=method, url=url, **kwargs)
    File "/Users/ratha/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 508, in request
      resp = self.send(prep, **send_kwargs)
    File "/Users/ratha/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 618, in send
      r = adapter.send(request, **kwargs)
    File "/Users/ratha/Library/Python/2.7/lib/python/site-packages/requests/adapters.py", line 460, in send
      for i in request.body:
  TypeError: 'ATGPollingException' object is not iterable
  </code></pre>
  
  <p>What Im doing wrong?
  My endpoint accepts <code>PollingException</code> object as request parameter</p>