import json


def dictify_json_loads(text: str):
    """
    Like json.loads, but returns an empty dict for an empty or whitespace string.

    :param text:
    :type text:
    :return:
    :rtype:
    """
    text = text.strip()
    if text:
        return json.loads(text)
    else:
        return {}