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_filestr, path or file-like object

The location of JSON data. Currently only the line-delimited JSON format is supported.

read_optionspyarrow.json.ReadOptions, optional

Options for the JSON reader (see ReadOptions constructor for defaults).

parse_optionspyarrow.json.ParseOptions, optional

Options for the JSON parser (see ParseOptions constructor for defaults).

memory_poolMemoryPool, optional

Pool to allocate Table memory from.

Returns:
pyarrow.Table

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