import json


def __convert_json(string):
    """ Converts a string into JSON format.  If the conversion fails,
        returns None.
    """

    try:
        return json.loads(string)
    except:
        return None