import json


def json_format(text: str) -> str:
    """Simple utility to parse json text and format it for printing.
    """
    obj = json.loads(text)
    return json.dumps(obj, indent=4, sort_keys=True)