path to json file
./file.json
.Optional
options: Partial<ScanJsonOptions>> const df = pl.scanJson('path/to/file.json', {numRows: 2}).collectSync()
> console.log(df)
shape: (2, 3)
╭─────┬─────┬─────╮
│ a ┆ b ┆ c │
│ --- ┆ --- ┆ --- │
│ i64 ┆ str ┆ i64 │
╞═════╪═════╪═════╡
│ 1 ┆ foo ┆ 3 │
├╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌┤
│ 2 ┆ bar ┆ 6 │
╰─────┴─────┴─────╯
Read a JSON file or string into a DataFrame.
Note: Currently only newline delimited JSON is supported