From 0d23761f9cbae8806d16dc108c8191cfc961bbc4 Mon Sep 17 00:00:00 2001 From: Finn Gruwier Larsen Date: Tue, 14 May 2024 16:54:04 +0200 Subject: [PATCH] get_project: print response as actual JSON --- get_project_json.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/get_project_json.py b/get_project_json.py index 27d5995..d6bd991 100644 --- a/get_project_json.py +++ b/get_project_json.py @@ -1,5 +1,5 @@ import argparse -from pathlib import Path +from json import dumps import common from functions import get_project_json @@ -19,5 +19,6 @@ mr_base_url=common.MICROREACT_BASE_URL, verify = not args.noverify ) -print(f"REST response: {str(rest_response)}") -print(rest_response.json()) \ No newline at end of file +print(f"HTTP response code: {str(rest_response)}") +print("Response as actual JSON:") +print(dumps(rest_response.json())) \ No newline at end of file