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_file
str, 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_options
pyarrow.json.ReadOptions, optional Options for the JSON reader (see pyarrow.json.ReadOptions constructorfor defaults)
- parse_options
pyarrow.json.ParseOptions, optional Options for the JSON parser(see pyarrow.json.ParseOptions constructor for defaults)
- memory_pool
MemoryPool, optional Pool to allocate RecordBatch memory from
- input_file
- Returns:
pyarrow.json.JSONStreamingReader
On this page

