Updated code to match new rules
[integration/test.git] / tools / odl-mdsal-clustering-tests / clustering-performance-test / pretty_print.py
1 #!/usr/bin/python
2 import json
3 import sys
4
5
6 __author__ = "Jan Medved"
7 __copyright__ = "Copyright(c) 2014, Cisco Systems, Inc."
8 __license__ = "New-style BSD"
9 __email__ = "jmedved@cisco.com"
10
11
12 if __name__ == "__main__":
13
14     data = sys.stdin.readlines()
15     payload = json.loads(data.pop(0))
16     s = json.dumps(payload, sort_keys=True, indent=4, separators=(',', ': '))
17     print '%s\n\n' % s