"json.decoder.JSONDecodeError: Extra data: line 1 column 5287" but there is nothing there
<p>I have a series of .json files. Each file contains tweets based on a different keyword. Each line in every file is a json object. I read the files using the following code: </p>

<pre><code># Get tweets out of JSON file
tweetsFromJSON = []
with open(json_file) as f:
    for line in f:
        json_object = json.loads(line)
        tweet_text = json_object["text"]
        tweetsFromJSON.append(tweet_text)
</code></pre>

<p>For every JSON file I have this works flawlessly. But <a href="https://www.dropbox.com/sh/m9tyknwehn2eqgc/AACGDRlFXhnXNzg2ofrrEBJka?dl=0" rel="nofollow noreferrer">this</a> particular file gives me the following error: </p>

<pre><code>Traceback (most recent call last):
  File "C:/Users/alexandros/Dropbox/Development/Sentiment Analysis/lda_analysis.py", line 119, in &lt;module&gt;
    lda_analysis('precision_medicine.json', 'precision medicine')
  File "C:/Users/alexandros/Dropbox/Development/Sentiment Analysis/lda_analysis.py", line 46, in lda_analysis
    json_object = json.loads(line)
  File "C:\Users\alexandros\AppData\Local\Programs\Python\Python35-32\lib\json\__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "C:\Users\alexandros\AppData\Local\Programs\Python\Python35-32\lib\json\decoder.py", line 342, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5287 (char 5286)
</code></pre>

<p>So tried removing the first line to see what happens. The error persists and again it's in the exact same position (line 1 column 5287 (char 5286)). I removed another line and it's the same. I'm breaking my head trying to figure out what's wrong. What am I missing? </p>