polars.read_json

polars.read_json(source: Union[str, io.IOBase], json_lines: bool = False) polars.internals.frame.DataFrame

Read into a DataFrame from JSON format.

Parameters
source

Path to a file or a file-like object.

json_lines

Toggle between “JSON” and “NDJSON” format