polars.read_json#

polars.read_json(file: str | pathlib.Path | io.IOBase, json_lines: bool | None = None) DataFrame[source]#

Read into a DataFrame from a JSON file.

Parameters:
file

Path to a file or a file-like object.

json_lines

Deprecated argument. Toggle between JSON and NDJSON format.

See also

read_ndjson