# tinker_cookbook.utils.read_jsonl

### [**tinker_cookbook.utils.read_jsonl**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/utils/file_utils.py#L6) ( _path_)

Read a JSONL (JSON Lines) file and return a list of parsed dictionaries.

Each line in the file is expected to be a valid JSON object.

**Parameters:**

- [**path**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/utils/file_utils.py#L6) ( _str_) – Path to the JSONL file.

**Returns:** _list[dict]_ – List of dictionaries, one per line in the file.

```
records = read_jsonl("metrics.jsonl")
for record in records:
    print(record["step"], record["loss"])
```
