pyarrow.json.open_json#

pyarrow.json.open_json(input_file,read_options=None,parse_options=None,MemoryPoolmemory_pool=None)#

Open a streaming reader of JSON data.

Reading using this function is always single-threaded.

Parameters:
input_filestr, path or file-like object

The location of JSON data. If a string or path, and if it endswith a recognized compressed file extension (e.g. “.gz” or “.bz2”),the data is automatically decompressed when reading.

read_optionspyarrow.json.ReadOptions, optional

Options for the JSON reader (see pyarrow.json.ReadOptions constructorfor defaults)

parse_optionspyarrow.json.ParseOptions, optional

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

memory_poolMemoryPool, optional

Pool to allocate RecordBatch memory from

Returns:
pyarrow.json.JSONStreamingReader