Skip to content

Instantly share code, notes, and snippets.

@ereli
Created September 11, 2014 11:25
Show Gist options
  • Save ereli/f1c9f4967e57f2baf2b2 to your computer and use it in GitHub Desktop.
Save ereli/f1c9f4967e57f2baf2b2 to your computer and use it in GitHub Desktop.
import fileinput
import json
for line in fileinput.input():
try:
print(json.dumps(json.loads(line)))
except:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment