import json


def json_loads(data):
    """
    Safely convert data to json (do not throw an exception on fail)

    :param data:
    :return: parsed json
    """

    try:
        return json.loads(data)
    except ValueError:
        pass