title: About .JSONDecodeError, don't know what cause and how to fix it
body: <p>trying to connect my price comparison code to <code>pandas</code>, but I got the error:</p>
  <pre><code>JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  <p>the code is like:</p>
  <pre><code>keyword = str(input('找什麼? '))
  pages = 10
  parse_word = urllib.parse.quote(keyword)
  for page in list(range(1, pages)):
      response = requests.get('https://ecshweb.pchome.com.tw/search/v3.3/all/results?q=' + parse_word + '&amp;page=' + str(page) + '&amp;sort=rnk/dc')
      raw_data = response.content.decode(encoding='utf-8')
      data = json.loads(raw_data)
      try:
          myData = []
          for product in data['prods']:
              product_name = product['name']
              prod_id = product['Id']
              prod_price = product['price']
              link = 'https://24h.pchome.com.tw/prod/' + prod_id
              myData.append({
                  &quot;名稱&quot;:product_name,
                  &quot;價格&quot;:prod_price,
                  &quot;網址&quot;:link
              })
              today = str(datetime.date.today())
              fileName = today + '_' + keyword + '_Pchome.json'
              try:
                  with open(fileName, 'w', encoding='utf-8') as f:
                      json.dump(myData, f, ensure_ascii=False, indent=4, skipkeys=True)        
              except Exception as err:
                 print(str(err))
      except Exception as err:
          print(str(err))
  print('完成!') 
  df = pd.DataFrame(myData)
  #print(df)
  print('='*150)
  print(df.nsmallest(10, '價格'))
  print('='*150)
  </code></pre>
  <p>and here is the error messages:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Cheng\Desktop\Python\Autoshop\pchome.py&quot;, line 24, in &lt;module&gt;
      data = json.loads(raw_data)
    File &quot;C:\Users\Cheng\AppData\Local\Programs\Python\Python39\lib\json\__init__.py&quot;, line 346, in loads    
      return _default_decoder.decode(s)
    File &quot;C:\Users\Cheng\AppData\Local\Programs\Python\Python39\lib\json\decoder.py&quot;, line 337, in decode    
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File &quot;C:\Users\Cheng\AppData\Local\Programs\Python\Python39\lib\json\decoder.py&quot;, line 355, in raw_decode
      raise JSONDecodeError(&quot;Expecting value&quot;, s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  <p>wondering how to fix it</p>