title: Merging two API calls together with JSON
body: <p>I am pulling JSON data from a GET request over an API and I am unable to get the responses to join together. I am new to dictionaries and indexes (and python for that manner).</p>
  
  <p>The API data is the same, it is just a different page number. Able to verify via the eclipse debugger. I am able to confirm that each API call is able to pull the data it needs as well.</p>
  
  <pre><code>#pulls from the API
  response = requests.get(url, headers=headers)
  
  obj_json = response.content
  objLoader = json.loads(obj_json)
  obj1 = objLoader
  
  #url changes to page 2
  response = requests.get(url, headers=headers)
  
  obj_json = response.content
  obj1 = json.loads(obj_json)
  
  newObj = dict(obj1.items() + obj2.items())
  #I have also tried the following:
  #dict(obj1.items() | obj2.items())
  </code></pre>
  
  <p>In the end I'd like obj2 to be appended to obj1. </p>
  
  <pre><code>#Let's say obj1 has:
  indexes[0][1]
  #and obj2 has 
  indexes [0][1]
  #I'd like obj1 to have 
  indexes[0][1][2][3]
  </code></pre>
  
  <p>The obj1 &amp; 2 item data is structured like this:</p>
  
  <pre><code>obj1/2: dict u'count': 25370, u'items': [{..........}]
  
  __len__: int: 508
  count: int 25370
  items: &lt;type 'list'&gt;: [{...}]
  page: int
  pages: int
  </code></pre>
  
  <p>Thank you, and let me know if you need more information!</p>