promptdojo_

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

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.

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