files and i/o — moving data in and out7 / 9
csv and jsonl — the two formats ai moves data in
Cursor wrote a JSONL reader using json.load(f), which expects the
whole file to be a single JSON document. The file is JSONL — one
object per line — so json.load blows up.
Replace lines 12-13 with the standard JSONL loop: iterate f, and
call json.loads(line) on each line. Print each record's prompt
field.
The break is on lines 12, 13 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _