title: ValueError: Expected object or value while reading JSON using Pandas with Chunksize and lines=True
body: <p>I've looked into mutliple stackoverflow threads and pandas document but I am still getting following error when trying to read json as below</p>
  <p><strong>source:</strong> <code>https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#io-json-reader</code> and section <code>Line delimited json</code></p>
  <pre><code>import pandas as pd
  chunks = pd.read_json('/Users/abc/PycharmProjects/test-json/records1.json', lines=True, chunksize=10)
  
  for chunk in chunks:
      print(chunk)
      break
  </code></pre>
  <p><strong>error</strong></p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/abc/PycharmProjects/abc_code/test.py&quot;, line 4, in &lt;module&gt;
      for chunk in chunks:
    File &quot;/Users/abc/.local/share/virtualenvs/abc_code-bU7zXpdS/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 744, in __next__
      obj = self._get_object_parser(lines_json)
    File &quot;/Users/abc/.local/share/virtualenvs/abc_code-bU7zXpdS/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 716, in _get_object_parser
      obj = FrameParser(json, **kwargs).parse()
    File &quot;/Users/abc/.local/share/virtualenvs/abc_code-bU7zXpdS/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 831, in parse
      self._parse_no_numpy()
    File &quot;/Users/abc/.local/share/virtualenvs/abc_code-bU7zXpdS/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 1079, in _parse_no_numpy
      loads(json, precise_float=self.precise_float), dtype=None
  **ValueError: Expected object or value**
  </code></pre>
  <p>PS:</p>
  <ul>
  <li>It works fine if I read without <code>lines=True, chunksize=10</code> params but isn't working with these params. reason I am using these params is because we get big jsons and I don't want to load all of that in memory in single go.</li>
  <li>For testing purpose, let's say I want to filter people from this json for whom <code> &quot;isActive&quot;: true</code>.</li>
  <li>I am using <code>python v3.7.9 and pandas v1.3.1</code></li>
  </ul>
  <p>thanks for the help!!</p>
  <p>For reference, please find below the sample snippet of json which I am trying to read</p>
  <pre><code>[{
      &quot;_id&quot;: &quot;5c21a63a1e4bb8d6a7d1ffa0&quot;,
      &quot;index&quot;: 0,
      &quot;guid&quot;: &quot;ae4d6f3d-ad3f-4923-8b87-8456d427f96e&quot;,
      &quot;isActive&quot;: true,
      &quot;balance&quot;: &quot;$3,624.10&quot;,
      &quot;picture&quot;: &quot;http://placehold.it/32x32&quot;,
      &quot;age&quot;: 30,
      &quot;eyeColor&quot;: &quot;blue&quot;,
      &quot;name&quot;: {
          &quot;first&quot;: &quot;Alvarado&quot;,
          &quot;last&quot;: &quot;Castro&quot;
      },
      &quot;company&quot;: &quot;ARTWORLDS&quot;,
      &quot;email&quot;: &quot;alvarado.castro@artworlds.com&quot;,
      &quot;phone&quot;: &quot;+1 (937) 418-3892&quot;,
      &quot;address&quot;: &quot;190 Joralemon Street, Talpa, Hawaii, 4597&quot;,
      &quot;about&quot;: &quot;Veniam ut officia exercitation eiusmod officia nulla id est consectetur. Laboris excepteur id dolore consequat dolore ad deserunt anim anim. Eu ea ad cupidatat consequat duis id ut elit adipisicing ea minim irure ullamco voluptate. Irure reprehenderit duis esse esse dolore voluptate ad. Reprehenderit veniam qui velit cupidatat. Veniam consectetur aliquip quis sit laboris sint adipisicing occaecat occaecat consequat sint.&quot;,
      &quot;registered&quot;: &quot;Friday, October 5, 2018 6:26 PM&quot;,
      &quot;latitude&quot;: &quot;-59.473097&quot;,
      &quot;longitude&quot;: &quot;118.295711&quot;,
      &quot;tags&quot;: [
          &quot;adipisicing&quot;,
          &quot;incididunt&quot;,
          &quot;deserunt&quot;,
          &quot;commodo&quot;,
          &quot;nisi&quot;
      ],
      &quot;range&quot;: [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
      ],
      &quot;friends&quot;: [{
              &quot;id&quot;: 0,
              &quot;name&quot;: &quot;Mcgee Delacruz&quot;
          },
          {
              &quot;id&quot;: 1,
              &quot;name&quot;: &quot;Marquita Robinson&quot;
          },
          {
              &quot;id&quot;: 2,
              &quot;name&quot;: &quot;Mullen Foreman&quot;
          }
      ],
      &quot;greeting&quot;: &quot;Hello, Alvarado! You have 7 unread messages.&quot;,
      &quot;favoriteFruit&quot;: &quot;banana&quot;
  }]
  </code></pre>