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","."]
docstr: The function read_json accepts three input types:
      1. filepath (string-like)
      2. file-like object (e.g. open file object, StringIO)
      3. JSON string
  
  This method turns (1) into (2) to simplify the rest of the processing.
  It returns input types (2) and (3) unchanged.
docstr_tok: ["The","function","read_json","accepts","three","input","types",":","1.","filepath","(","string-like",")","2.","file-like","object","(","e.g",".","open","file","object",",","StringIO",")","3",".","JSON","string","This","method","turns","(","1",")","into","(","2",")","to","simplify","the","rest","of","the","processing",".","It","returns","input","types","(","2",")","and","(","3",")","unchanged","."]
code: def _get_data_from_filepath(self, filepath_or_buffer):
      """
      The function read_json accepts three input types:
          1. filepath (string-like)
          2. file-like object (e.g. open file object, StringIO)
          3. JSON string
  
      This method turns (1) into (2) to simplify the rest of the processing.
      It returns input types (2) and (3) unchanged.
      """
      data = filepath_or_buffer
  
      exists = False
      if isinstance(data, compat.string_types):
          try:
              exists = os.path.exists(filepath_or_buffer)
          # gh-5874: if the filepath is too long will raise here
          except (TypeError, ValueError):
              pass
  
      if exists or self.compression is not None:
          data, _ = _get_handle(
              filepath_or_buffer,
              "r",
              encoding=self.encoding,
              compression=self.compression,
          )
          self.should_close = True
          self.open_stream = data
  
      return 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 3 for calling the JsonReader obj's underlying member method code with example usage: obj._get_data_from_filepath(filepath_or_buffer) and returns: data