title: json type error int object is not subscriptable
body: <p>Trying to search to see if quantity in stock is above <code>0</code> on: </p>
  
  <p><a href="https://www.astro-bot.io/api/commerce/inventory/stock/?crumb=BQXy6KNmMGWENWE3YWQzMTc3MDU5NzE1ODdkNDNiM2RmZTEyNjg4&amp;itemId=5b0dc9172b6a283905dabe08" rel="nofollow noreferrer">https://www.astro-bot.io/api/commerce/inventory/stock/?crumb=BQXy6KNmMGWENWE3YWQzMTc3MDU5NzE1ODdkNDNiM2RmZTEyNjg4&amp;itemId=5b0dc9172b6a283905dabe08</a></p>
  
  <p>getting:</p>
  
  <pre><code>TypeError: 'int' object is not subscriptable
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup as bs4
  from threading import Thread
  import json
  
  s = requests.session()
  
  def checkstock():
      global session
      response = s.get('https://www.astro-bot.io/api/commerce/inventory/stock/?crumb=BQXy6KNmMGWENWE3YWQzMTc3MDU5NzE1ODdkNDNiM2RmZTEyNjg4&amp;itemId=5b0dc9172b6a283905dabe08')
      data = json.loads(response.text)
      stock = data['results'][0]['qtyInStock'][0]['available']
      if stock in [0]:
          print("out of stock!")
      else:
          print("in stock")
  
  checkstock()
  </code></pre>