Skip to content

Instantly share code, notes, and snippets.

@kestein
Created May 4, 2018 14:12
Show Gist options
  • Save kestein/9682072c4acb6342df4eeda32cf1e81d to your computer and use it in GitHub Desktop.
Save kestein/9682072c4acb6342df4eeda32cf1e81d to your computer and use it in GitHub Desktop.
The basics for reading in a json file since I use it a lot
import sys
import json
with open(sys.argv[1], "rb") as f:
for line in f:
j = json.loads(line.strip())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment