Skip to content

Instantly share code, notes, and snippets.

@isotopp
Last active February 11, 2022 10:22
Show Gist options
  • Save isotopp/8af81d72126c3353f506a36b24266bd5 to your computer and use it in GitHub Desktop.
Save isotopp/8af81d72126c3353f506a36b24266bd5 to your computer and use it in GitHub Desktop.
#! /usr/bin/python3
import json
import pprint
count=0
with open("data.jsonl", "r") as f:
while (line := f.readline()) and count<3:
d = json.loads(line)
pprint.pprint(d)
print()
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment