diff --git a/src/statd/python/cli_pretty/cli_pretty.py b/src/statd/python/cli_pretty/cli_pretty.py index fd2caa5c..703468c5 100755 --- a/src/statd/python/cli_pretty/cli_pretty.py +++ b/src/statd/python/cli_pretty/cli_pretty.py @@ -5618,7 +5618,8 @@ def main(): global UNIT_TEST try: - json_data = json.load(sys.stdin) + raw = sys.stdin.read() + json_data = json.loads(raw) if raw.strip() else {} except json.JSONDecodeError: print("Error, invalid JSON input") sys.exit(1)