title: how to replace unwanted characters [] when loading json file in Python?
body: <p>I'm trying to load a json file using the following code:</p>
  
  <pre><code>with open('tweets_036.jsonl') as json_file:
      data = json.load(json_file)
  </code></pre>
  
  <p>but I get the following error msg:</p>
  
  <pre><code>JSONDecodeError: Extra data: line 24289 column 2 (char 1088180)
  </code></pre>
  
  <p>when i take a look at the file/line 24289, I can see that [] is causing the problem:</p>
  
  <pre><code>        "favorited": false
      }
  ][
      {
          "retweeted": false,
  </code></pre>
  
  <p>Comparing to previous lines, it should be :</p>
  
  <pre><code>        "favorited": false
      },
      {
          "retweeted": false,
  </code></pre>
  
  <p>FYI, the data relates to tweets, 'retweeted' is normally the first element of a new tweet whilst 'favorited' is the last one.</p>
  
  <p>Thank you in advance if you can please help.</p>