libvirt/tests/cputestdata/cpu-reformat.py

10 lines
191 B
Python
Raw Normal View History

#!/usr/bin/env python
import sys
import json
dec = json.JSONDecoder()
data, pos = dec.raw_decode(sys.stdin.read())
json.dump(data, sys.stdout, indent=2, separators=(',', ': '))
print("\n")