import json


def deserialize_json_value(value):
    """Deserialize json ``value`` paying special attention to corner cases

    Parameters
    ----------
    value : `str` or None
        json document to deserialize

    Returns
    -------
    object
        deserialized ``value``
    """

    if (value is None) or (value == ''):
        return value

    return json.loads(value)