title: How to convert cloudant.document to json
body: <p>with cloudant(CLOUDANT_USERNAME, CLOUDANT_PW, account=CLOUDANT_USERNAME) as client: </p>
  
  <pre><code>mydb = client[CLOUDANT_DB]
  for doc in mydb:
      df = pd.DataFrame()
      #print(type(doc))
      data = **some_function(doc)
      df = json_normalize(data, 'record',...)
  </code></pre>
  
  <p>with above sample code i am trying to convert a doc, obtained from iterating a cloudant db, into a json so that i can then normalize it. However the type of doc is cloudant.document.Document and json.load etc. don't work on it. Any suggestion is welcome for **</p>