files and i/o — moving data in and out8 / 9
csv and jsonl — the two formats ai moves data in
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
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _