about summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/instrument-coverage/prettify_json.py
blob: ed9279841f70e5929208cd14a21616cc6969876a (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python

import sys
import json

# Try to decode line in order to ensure it is a valid JSON document
for line in sys.stdin:
    parsed = json.loads(line)
    print (json.dumps(parsed, indent=2, separators=(',', ': '), sort_keys=True))