title: Scrape JSON Data in Python
body: <p>Trying to scrape following json data from a link: I am trying to get the 'ID' values in a list</p>
  
  <pre><code>{"lister":[{"id":12345,"name":"ES","only":fal},{"id":67899,"name":"FS","only":gal}]}
  </code></pre>
  
  <p>I have tried following:</p>
  
  <pre><code>url = 'link'
  r = session.get(url,headers=headers)
  
  
  js = r.json()
  user_id = js["lister"]['id']
  
  print (user_id)
  </code></pre>
  
  <p>I get error:</p>
  
  <pre><code>    raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>