title: I want to print "identifier":"OPTSTKHDFC25-08-2022PE1660.00" in python
body: <p>I tried below code but it gave</p>
  <pre><code>TypeError: string indices must be integers
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>from nsepython import *
  import pandas as pd
  import json
  
  positions = nse_optionchain_scrapper ('HDFC')
  
  json_decode = json.dumps(positions,indent = 4, sort_keys=True,separators =(&quot;. &quot;, &quot; = &quot;))
  
  print(json_decode['data'][0]['identifier'])
  </code></pre>