import json


def json_output(response: dict) -> str:
    """
        Output API response in prettified JSON format

        Parameters
        ----------
        response : dict

        Returns
        -------
        str
    """
    return json.dumps(response, indent=2, sort_keys=True)