import json


def dict_to_json(json_dict: dict, sort_keys=True, indent=None) -> str:
    """
    Transforms a tree made up of dictionaries and list into json string.
    :param  json_dict: the dict to transform
    :return: the json string
    """
    return json.dumps(json_dict, sort_keys=sort_keys, indent=indent)