title: ValueError: Expected object or value in pandas using lines=True
body: <p>my test_data.json file format is</p>
  <pre><code>[{&quot;Gender&quot;: &quot;Male&quot;, &quot;HeightCm&quot;: 171, &quot;WeightKg&quot;: 96 },
  { &quot;Gender&quot;: &quot;Male&quot;, &quot;HeightCm&quot;: 161, &quot;WeightKg&quot;: 85 },
  { &quot;Gender&quot;: &quot;Male&quot;, &quot;HeightCm&quot;: 180, &quot;WeightKg&quot;: 77 },
  { &quot;Gender&quot;: &quot;Female&quot;, &quot;HeightCm&quot;: 166, &quot;WeightKg&quot;: 62},
  {&quot;Gender&quot;: &quot;Female&quot;, &quot;HeightCm&quot;: 150, &quot;WeightKg&quot;: 70},
  {&quot;Gender&quot;: &quot;Female&quot;, &quot;HeightCm&quot;: 167, &quot;WeightKg&quot;: 82}]
  </code></pre>
  <p>when I read the json file in panda using</p>
  <pre><code>basePath = os.path.dirname(os.path.abspath(__file__))
  reader=pd.read_json(basePath+'/test_data.json',orient=&quot;records&quot;)
  </code></pre>
  <p>It converted json file in the perfect dataframe i.e.</p>
  <pre><code>   Gender  HeightCm  WeightKg
  0    Male       171        96
  1    Male       161        85
  2    Male       180        77
  3  Female       166        62
  4  Female       150        70
  5  Female       167        82
  </code></pre>
  <p>but now when i put the lines=True in the pd.read_json() i.e.</p>
  <pre><code>basePath = os.path.dirname(os.path.abspath(__file__))
  reader=pd.read_json(basePath+'/test_data.json',orient=&quot;records&quot;,lines=True)
  </code></pre>
  <p>its generating the error</p>
  <pre><code>    Traceback (most recent call last):
    File &quot;test1.py&quot;, line 5, in &lt;module&gt;
      reader=pd.read_json(basePath+'/test_data.json',orient=&quot;records&quot;,lines=True)
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/util/_decorators.py&quot;, line 207, in wrapper
      return func(*args, **kwargs)
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/util/_decorators.py&quot;, line 311, in wrapper
      return func(*args, **kwargs)
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 614, in read_json
      return json_reader.read()
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 746, in read
      obj = self._get_object_parser(self._combine_lines(data_lines))
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 770, in _get_object_parser
      obj = FrameParser(json, **kwargs).parse()
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 885, in parse
      self._parse_no_numpy()
    File &quot;/home/king_leo/.local/lib/python3.8/site-packages/pandas/io/json/_json.py&quot;, line 1164, in _parse_no_numpy
      loads(json, precise_float=self.precise_float), dtype=None
  ValueError: Expected object or value
  </code></pre>