path to json file
./file.json.Optionaloptions: Partial<ScanJsonOptions>
Maximum number of rows to scan for schema inference.
If set to null, the full data may be scanned (this is slow). Default -> 100
Declare the schema of the frame. Types that are not given are inferred.
Override the dtype of one or more columns; note that any
dtypes inferred from the schema param will be overridden.
Number of rows to read in each batch.
Stop reading from the JSON file after reading nRows.
Reduce memory pressure at the expense of performance.
Reallocate to contiguous memory when all chunks/files are parsed.
Return null if parsing fails because of a schema mismatch.
If given, insert a row index column with this name.
Offset to start the row index column at (only used if the name is set).
Options that indicate how to connect to a cloud provider.
The cloud providers currently supported are AWS, GCP, and Azure. See supported keys here:
aws <https://docs.rs/object_store/latest/object_store/aws/enum.AmazonS3ConfigKey.html>_gcp <https://docs.rs/object_store/latest/object_store/gcp/enum.GoogleConfigKey.html>_azure <https://docs.rs/object_store/latest/object_store/azure/enum.AzureConfigKey.html>_If cloudOptions is not provided, Polars will try to infer the information from
environment variables.
Include the path of the source file(s) as a column with this name.
Lazily read from a newline delimited JSON file or multiple files via glob patterns.
This allows the query optimizer to push down predicates and projections to the scan level, thereby potentially reducing memory overhead.
Note: Currently only newline delimited JSON is supported