title: Printing each instance of a single line item from a JSON using python
body: <p>Does anyone know how to print and multiple instances of the same line from a JSON output?</p>
  
  <p>The code I wish to decipher looks something similar to:</p>
  
  <pre><code>[
  {
      "project": {
          "id": 6514847,
          "name": "Trial_1",
          "code": "123",
          "created_at": "2014-10-08T04:22:14Z",
          "updated_at": "2017-04-11T00:32:43Z",
          "starts_on": "2014-10-08"
      }
  },
  
  {
      "project": {
          "id": 6514864,
          "name": "Trial_2",
          "code": "456",
          "created_at": "2014-10-08T04:26:39Z",
          "updated_at": "2017-04-11T00:32:46Z",
          "starts_on": "2014-10-08"
      }
  },
  {
      "project": {
          "id": 12502453,
          "name": "Trial_3",
          "code": "789",
          "created_at": "2016-12-08T05:14:38Z",
          "updated_at": "2017-04-11T00:32:38Z",
          "starts_on": "2016-12-08"
      }
  }
  ]
  </code></pre>
  
  <p>This code was a request.get()</p>
  
  <p>I know I can print a single instance of this using </p>
  
  <pre><code>req = requests.get(url, headers=headers)
  read_req = req.json()
  trial = read_req['project']['code']
  print(trial)  #123
  </code></pre>
  
  <p>The final product I wish to see is linking each Project Name to its relevant Project Code.</p>