utils/handsfree/pre_run.py
def validate_input(update_file):
    """
    This method validates the input file. Returns true if the JSON is valid, false
    otherwise.
    """
    try:
        json.load(open(update_file))
        return True
    except ValueError:
        return False

    This method validates the input file. Returns true if the JSON is valid, false
    otherwise.
    
This method validates the input file. Returns true if the JSON is valid, false
otherwise.
This method validates the input file . Returns true if the JSON is valid false otherwise .
def validate_input(update_file):
    try:
        json.load(open(update_file))
        return True
    except ValueError:
        return False
def validate_input ( update_file ) : try : json . load ( open ( update_file ) ) return True except ValueError : return False
This method validates the input file.
This method validates the input file .
"""
    This method validates the input file. Returns true if the JSON is valid, false
    otherwise.
    """
update_file