helper script to reverse the order of a json

master
Michael Murtaugh 7 years ago
parent bb8c09f9f1
commit ecc330bcbc

@ -0,0 +1,6 @@
#reversejson.py
import sys, json
for i in sorted([json.loads(line) for line in sys.stdin], key=lambda x: x['date']):
print json.dumps(i)
Loading…
Cancel
Save