title: How do I read a json file into python?
body: <p>I'm new to JSON and Python, any help on this would be greatly appreciated. </p>
  
  <p>I read about json.loads but am confused</p>
  
  <p>How do I read a file into Python using json.loads?</p>
  
  <p>Below is my JSON file format:</p>
  
  <pre><code>{
          "header": {
          "platform":"atm"
          "version":"2.0"
         }
          "details":[
         {
          "abc":"3"
          "def":"4"
         },
         {
          "abc":"5"
          "def":"6"
         },
         {
          "abc":"7"
          "def":"8"
         }    
        ]
      }
  </code></pre>
  
  <p>My requirement is to read the values of all <code>"abc"</code> <code>"def"</code> in details and add this is to a new list like this <code>[(1,2),(3,4),(5,6),(7,8)]</code>. The new list will be used to create a spark data frame.</p>