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.
⌘↵ runs the editor.read, then continue.
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.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.