helper script to reverse the order of a json
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…
Reference in New Issue