class_docstr: JsonReader provides an interface for reading in a JSON file.
  
  If initialized with ``lines=True`` and ``chunksize``, can be iterated over
  ``chunksize`` lines at a time. Otherwise, calling ``read`` reads in the
  whole document.
class_docstr_tok: ["JsonReader","provides","an","interface","for","reading","in","a","JSON","file",".","If","initialized","with","``","lines=True","``","and","``","chunksize","``",",","can","be","iterated","over","``","chunksize","``","lines","at","a","time",".","Otherwise",",","calling","``","read","``","reads","in","the","whole","document","."]
code: def __init__(
      self,
      filepath_or_buffer,
      orient,
      typ,
      dtype,
      convert_axes,
      convert_dates,
      keep_default_dates,
      numpy,
      precise_float,
      date_unit,
      encoding,
      lines,
      chunksize,
      compression,
  ):
      self.path_or_buf = filepath_or_buffer
      self.orient = orient
      self.typ = typ
      self.dtype = dtype
      self.convert_axes = convert_axes
      self.convert_dates = convert_dates
      self.keep_default_dates = keep_default_dates
      self.numpy = numpy
      self.precise_float = precise_float
      self.date_unit = date_unit
      self.encoding = encoding
      self.compression = compression
      self.lines = lines
      self.chunksize = chunksize
      self.nrows_seen = 0
      self.should_close = False
  
      if self.chunksize is not None:
          self.chunksize = _validate_integer(
              "chunksize", self.chunksize, 1
          )
          if not self.lines:
              raise ValueError(
                  "chunksize can only be passed if lines=True"
              )
  
      data = self._get_data_from_filepath(filepath_or_buffer)
      self.data = self._preprocess_data(data)
  
imports: from itertools import islice
  import os
  import numpy
  import pandas._libs.json
  from pandas._libs.tslibs import iNaT
  from pandas.compat import StringIO, long, to_str, u
  from pandas.errors import AbstractMethodError
  from pandas.core.dtypes.common import is_period_dtype
  from pandas import DataFrame, MultiIndex, Series, compat, isna, to_datetime
  from pandas.core.reshape.concat import concat
  from pandas.io.common import BaseIterator, _get_handle, _infer_compression, _stringify_path, get_filepath_or_buffer
  from pandas.io.formats.printing import pprint_thing
  from pandas.io.parsers import _validate_integer
  from .normalize import _convert_to_line_delimits
  from .table_schema import build_table_schema, parse_table_schema
label_desc: Use image node_id 1 to create a new JsonReader object from inherited base classes: BaseIterator with example: obj = JsonReader(filepath_or_buffer, orient, typ, dtype, convert_axes, convert_dates, keep_default_dates, numpy, precise_float, date_unit, encoding, lines, chunksize, compression)