1. The file is JSON Lines
Exports from BigQuery, logging tools and OpenAI batch files are JSON Lines, one JSON object per line. Read the file line by line and decode each one.
import json
with open("events.jsonl") as f:
events = [json.loads(line) for line in f if line.strip()]