title: Getting error JSONDecodeError: Expecting ',' delimiter when importing from API
body: <p>I am trying to parse response data from an API but I keep getting this error.</p>
  <p>This is my code:</p>
  <pre><code>import requests
  import json
  
  url = &quot;https://ratings.food.gov.uk/OpenDataFiles/FHRS776en-GB.json&quot;
  
  r = requests.get(url)
  json_data = r.json()
  </code></pre>
  <p>This is the error</p>
  <pre><code>File &quot;/usr/local/lib/python3.8/site-packages/requests/models.py&quot;, line 889, in json
     return complexjson.loads(
   File &quot;/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py&quot;, line 357, in loads
     return _default_decoder.decode(s)
   File &quot;/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py&quot;, line 337, in decode
     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File &quot;/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py&quot;, line 353, in raw_decode
     obj, end = self.scan_once(s, idx)
  json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 233384 (char 233383)
  </code></pre>
  <p>I've confirmed this is a valid JSON and this is a public API so I don't have control over the formatting. How can I get past this error?</p>