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):