pyarrow.json.read_json

pyarrow.json.read_json(input_file, read_options=None, parse_options=None, MemoryPool memory_pool=None)

Read a Table from a stream of JSON data.

Parameters
  • input_file (string, path or file-like object) – The location of JSON data. Currently only the line-delimited JSON format is supported.

  • read_options (pyarrow.json.ReadOptions, optional) – Options for the JSON reader (see ReadOptions constructor for defaults)

  • parse_options (pyarrow.json.ParseOptions, optional) – Options for the JSON parser (see ParseOptions constructor for defaults)

  • memory_pool (MemoryPool, optional) – Pool to allocate Table memory from

Returns

pyarrow.Table – Contents of the JSON file as a in-memory table.