title: Read json file and get output values
body: <p>I want to fetch the output of below json file using python</p>
  <p>Json file</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;Name&quot;: [
          {
              &quot;name&quot;: &quot;John&quot;,
              &quot;Avg&quot;: &quot;55.7&quot;
          },
          {
              &quot;name&quot;: &quot;Rose&quot;,
              &quot;Avg&quot;: &quot;71.23&quot;
          },
          {
              &quot;name&quot;: &quot;Lola&quot;,
              &quot;Avg&quot;: &quot;78.93&quot;
          },
          {
              &quot;name&quot;: &quot;Harry&quot;,
              &quot;Avg&quot;: &quot;95.5&quot;
          }
  
      ]
  }
  </code></pre>
  <p>I want to get the average marks of the person, when I look for harry
  i.e. I need output in below or similar format</p>
  <p><code>Harry = 95.5</code></p>
  <p>Here's my code</p>
  <pre><code>import json
  
  json_file = open('test.json')  //the above contents are stored in the json
  data = json.load(json_file)
  do = data['Name'][0]
  op1 = do['Name']
  if op1 is 'Harry':
      print do['Avg']
  </code></pre>
  <p>But when I run I get error <code>IOError: [Errno 63] File name too long</code>.</p>