From 5226226ab2f46acef4d80130ee3546e7be21b7a6 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 6 Aug 2024 17:01:36 +0200 Subject: utils: print readable output for escaped non-ascii characters disable ascii_ensure in json dumps so listing of non-ascii characters is human readable. --- cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/utils.py') diff --git a/cli/utils.py b/cli/utils.py index 56fe723..9831d4b 100644 --- a/cli/utils.py +++ b/cli/utils.py @@ -49,7 +49,7 @@ def reorder_json_tree(payload): def print_json(text): payload = json.loads(text) reorder_json_tree(payload) - print(json.dumps(payload, indent=2)) + print(json.dumps(payload, indent=2, ensure_ascii=False)) def check_address(addr): try: -- cgit v1.2.3-18-g5258