title: extract a particular set of data from json file in python
body: <p>i have json file as below .Using python i want a fetch a record for source_name = 'Abc' . How i can achieve it</p>
  <p>---json file: file.json</p>
  <pre><code>[{
      &quot;source_name&quot; :&quot;Abc&quot;,
      &quot;target_table&quot;  : &quot;TABLE1&quot;,
      &quot;schema&quot;: &quot;col1 string, col2 string&quot;
  },
  {
       &quot;source_name&quot; :&quot;xyz&quot;,
      &quot;target_table&quot;  : &quot;TABLE2&quot;,
      &quot;schema&quot;: &quot;col3 string, col4 string&quot;
  }
  ]
  </code></pre>
  <p>final o/p ---</p>
  <pre><code>{
      &quot;source_name&quot; :&quot;Abc&quot;,
      &quot;target_table&quot;  : &quot;TABLE1&quot;,
      &quot;schema&quot;: &quot;col1 string, col2 string&quot;
  }
  </code></pre>