title: Create dataframe with schema provided as JSON file
body: <p>How can I create a pyspark data frame with 2 JSON files? </p>
  
  <ul>
  <li>file1: this file has complete data </li>
  <li>file2: this file has only the schema of file1 data.</li>
  </ul>
  
  <p><strong>file1</strong></p>
  
  <pre><code>{"RESIDENCY":"AUS","EFFDT":"01-01-1900","EFF_STATUS":"A","DESCR":"Australian Resident","DESCRSHORT":"Australian"}
  </code></pre>
  
  <p><strong>file2</strong></p>
  
  <pre><code>[{"fields":[{"metadata":{},"name":"RESIDENCY","nullable":true,"type":"string"},{"metadata":{},"name":"EFFDT","nullable":true,"type":"string"},{"metadata":{},"name":"EFF_STATUS","nullable":true,"type":"string"},{"metadata":{},"name":"DESCR","nullable":true,"type":"string"},{"metadata":{},"name":"DESCRSHORT","nullable":true,"type":"string"}],"type":"struct"}]
  </code></pre>