import json


def json_unstringify(json_to_objify, default=None):
    """Convert a json string to a python object.

    Args:
        json_to_objify (str): The json string.
        default (object): The default value if no json string is passed in.

    Returns:
        object: The un-stringified object.
    """
    try:
        parsed = json.loads(json_to_objify)
    except (TypeError, ValueError):
        parsed = default

    if parsed is None and default is not None:
        return default
    return parsed