title: How do I parse ndjson files?
body: <p>I performed a GET request from lichess.org, API reference: <a href="https://lichess.org/api#operation/apiGamesUser" rel="nofollow noreferrer">https://lichess.org/api#operation/apiGamesUser</a></p>
  
  <pre><code>import requests
  import json
  import ndjson
  response = requests.get('https://lichess.org/api/games/user/ardito_bryan', params={'max':10})
  </code></pre>
  
  <p>I am unable to decode ndjson, python library here: <a href="https://pypi.org/project/ndjson/" rel="nofollow noreferrer">https://pypi.org/project/ndjson/</a>
  According to the library reference I should be using:</p>
  
  <pre><code>items = response.json(cls=ndjson.Decoder)
  </code></pre>
  
  <p>It does not work, runs error:</p>
  
  <pre><code>JSONDecodeError: Expecting value: line 1 column 3 (char 2)
  </code></pre>
  
  <p>Ty.</p>