promptdojo_

CSV and JSONL — the two formats AI moves data in — step 8 of 9

Write a function load_jsonl(path) that opens the file at path, iterates one line at a time, parses each line with json.loads, and returns the resulting list of dicts.

The starter writes three records into /tmp/runs.jsonl. Calling load_jsonl and printing the id of each record should produce:

1
2
3

full-screen editor opens — close anytime to keep reading.