mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
9d62af7283
Various version of json_reformat use different number of spaces for indenting. Let's use a simple python reformatter to gain full control over the formatting for consistent results. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
10 lines
190 B
Python
Executable File
10 lines
190 B
Python
Executable File
#!/usr/bin/env python2
|
|
|
|
import sys
|
|
import json
|
|
|
|
dec = json.JSONDecoder()
|
|
data, pos = dec.raw_decode(sys.stdin.read())
|
|
json.dump(data, sys.stdout, indent = 2, separators = (',', ': '))
|
|
print
|