import json


def prettify_json_message(json_message):
    """
    This function is a helper function that is used to prettify a json/dict message obj so that is more readable
    for humans when it is logged.

    :param json_message (dict): A message that is to be prettified before being logged.

    Returns:
        - (str): A prettified json message string.

    """
    return json.dumps(json_message, indent=2, sort_keys=True)