title: Parsing a json gives JSONDecodeError: Unterminated string
body: <p>I have a document with new-line-delimited json's, to which I apply some functions. Everything works up until this line, which looks exactly like this:</p>
  <pre><code>{&quot;_id&quot;: &quot;5f114&quot;, &quot;type&quot;: [&quot;Type1&quot;, &quot;Type2&quot;], &quot;company&quot;: [&quot;5e84734&quot;], &quot;answers&quot;: [{&quot;title&quot;: &quot; answer 1&quot;, &quot;value&quot;: false}, {&quot;title&quot;: &quot;answer 2 &quot;, &quot;value&quot;: true}, {&quot;title&quot;: &quot;This is a title.&quot;, &quot;value&quot;: true}, {&quot;title&quot;: &quot;This is another title&quot;, &quot;value&quot;: true}], &quot;audios&quot;: [null], &quot;text&quot;: {}, &quot;lastUpdate&quot;: &quot;2020-07-17T06:24:50.562Z&quot;, &quot;title&quot;: &quot;This is a question?&quot;, &quot;description&quot;: &quot;1000 €.&quot;, &quot;image&quot;: &quot;image.jpg&quot;, &quot;__v&quot;: 0}
  </code></pre>
  <p>The entire code:</p>
  <pre><code>import json  
  
  def unimportant_function(d):
      d.pop('audios', None)
      return {k:v for k,v in d.items() if v != {}}
  
  
  def parse_ndjson(data):
      return [json.loads(l) for l in data.splitlines()]
  
  with open('C:\\path\\the_above_example.json', 'r', encoding=&quot;utf8&quot;) as handle:
      data = handle.read()
      dicts = parse_ndjson(data)
  
  for d in dicts:
      new_d = unimportant_function(d)
      json_string=json.dumps(new_d, ensure_ascii=False)
      print(json_string)
  </code></pre>
  <p>The error <code>JSONDecodeError: Unterminated string starting at: line 1 column 260 (char 259)</code> happens at <code>dicts = parse_ndjson(data)</code>. Why? I also have no idea what that symbol after &quot;answer 2&quot; is, it didn't appear in the data but it appeared when I copy pasted it.</p>
  <p>What is the problem with the data?</p>