title: Is there a way to extract a subset of a dictionary
body: <p>I want to create a dictionary from a json file but all I have tried did not work.</p>
  
  <pre class="lang-py prettyprint-override"><code>json_file = [
      {'original_block': '94.142.136.0/21',
       'transferred_blocks': '94.142.136.0/21',
       'from': 'MAROSNET Telecommunication Company LLC',
       'to': 'NTX Technologies s.r.o.',
       'date': '28/06/2019',
       'transferType': 'POLICY'
      },
      {'original_block': '185.2.4.0/22',
       'transferred_blocks': '185.2.4.0/22',
       'from': 'REGISTER.IT S.P.A.',
       'to': 'REGISTER S.P.A.',
       'date': '01/07/2019',
       'transferType': 'MERGER_OR_ACQUISITION'
      }
  ]
  
  new = ['original_block', 'date']
  
  newd = {key:value for key,value in json_file.items() if key in new}
  
  print(newd)
  </code></pre>
  
  <p>it gives an error message <code>'list' object has no attribute 'items'</code></p>
  
  <p>I expect</p>
  
  <pre class="lang-py prettyprint-override"><code>newd = {'94.142.136.0/21': '28/06/2019', '185.2.4.0/22':'01/07/2019'}
  </code></pre>