title: Adding JSON values into a list
body: <p>I'm wanting to iterate through my JSON file, and add two values into a list.</p>
  
  <p>In theory, I'm wanting to have a nested list as: <code>ips = [["custom3","modemId"],["custom3","modemId"]]</code> and so on. My JSON file has 171 of each custom3 and modemId values. So in theory my nested list will contain 171 lists.</p>
  
  <p>I'm having trouble adding the values into a list, in which I would like to append each list together, to create 171 lists.</p>
  
  <pre><code>json1 = open('C:\\Users\\' + comp_name + '\\Documents\\Programming Projects\\Python\\Python Firmware Script\\curl\\src\\out.json')
  json1_obj = json.load(json1)
  
  for i in json1_obj['data']:
      ip = [i['custom3']['modemId']]
  </code></pre>
  
  <p>A snippet of my JSON data:</p>
  
  <pre><code>{
      "data": [
          {
              "custom3": "192.168.243.132",
              "modemId": "000408"
          },
          {
              "custom3": "192.168.244.156",
              "modemId": "000310"
          }
      ]
  }
  </code></pre>
  
  <p>I have 171 objects as above, but I'm only showing two. From the above, I would like to create two lists and append them each into a nested list.</p>
  
  <p>How do I iterate through each JSON object and create a nested list with my JSON data in Python?</p>