From 9e5455610e49f25716b61543edd724a73bfcb3df Mon Sep 17 00:00:00 2001 From: Husnain Ali Date: Fri, 25 Jul 2025 16:53:24 +0500 Subject: [PATCH] Added pretty print utility method --- apimatic_core/utilities/api_helper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apimatic_core/utilities/api_helper.py b/apimatic_core/utilities/api_helper.py index 7a4489e..990b827 100644 --- a/apimatic_core/utilities/api_helper.py +++ b/apimatic_core/utilities/api_helper.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from collections import abc +import json import re import copy import datetime @@ -813,6 +814,9 @@ def update_entry_by_json_pointer(dictionary, pointer, value, inplace=True): current = current[part] current[parts[-1]] = value return dictionary + @staticmethod + def pretty_print_json(json_data): + print(json.dumps(json_data, indent=4)) @staticmethod def get_value_by_json_pointer(dictionary, pointer):