title: Object of type Response is not JSON serializable
body: <p>I am trying to convert my json from an api to a dataframe in python.  I run the following codes:</p>
  
  <pre><code>import requests
  import pandas as pd
  import simplejson as json
  
  params = {
    "api_key": "abc",
    "format": "json"
  }
  r = requests.get('https://www.parsehub.com/api/v2/runs/ttx8PT-EL6Rf/data', params=params)
  
  data = json.dumps(r) #convert to json
  data = json.loads(data)
  dataFrame = pd.DataFrame.from_dict(data) #convert json to dataframe
  print(dataFrame)
  </code></pre>
  
  <p>and I got these errors:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/User/PycharmProjects/test/convert jsontodataframe.py", line 11, in &lt;module&gt;
      data = json.dumps(r) #convert to json
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\simplejson\__init__.py", line 395, in dumps
      return _default_encoder.encode(obj)
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\simplejson\encoder.py", line 296, in encode
      chunks = self.iterencode(o, _one_shot=True)
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\simplejson\encoder.py", line 378, in iterencode
      return _iterencode(o, 0)
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\simplejson\encoder.py", line 273, in default
      o.__class__.__name__)
  TypeError: Object of type Response is not JSON serializable
  </code></pre>
  
  <p>can you help me please.
  Is there another way I can convert my json api to a dataframe in python? Please help me.</p>