def is_json(json_input):
    """
    Test if input is json
    :param json_input:
    :return: True or False
    """
    try:
        json.loads(json_input)
    except ValueError:
        return False
    return True

    Test if input is json
    :param json_input:
    :return: True or False
    
lemur/common/utils.py