title: How to get file "Path" stored in this json file using Python?
body: <h1>json file</h1>
  <pre><code>[{&quot;Attachment&quot;: [
  {
      &quot;Page:&quot;: [
      {
          &quot;Path&quot;: &quot;a\\b\\c.pdf&quot;,  #field to be extracted
          &quot;PageID&quot;: 1
      }
      ]
  }
  ],
  &quot;ID&quot;: 13221}]
  </code></pre>
  <p>I tried the following but getting the TypeError: list indices must be integers, not str</p>
  <pre><code>with open(file) as f:
      d = json.load(f)
  print(d[0]['Attachment']['Page']['Path'])
  </code></pre>