import json


def parse_input_file(input_filename):
    """
    Read `input_file` as a json and return a list of keywords, result_type
    and proxies list (or empty list of not present int JSON)
    """
    with open(input_filename, encoding="utf-8") as jsonfile:
        kwargs = json.loads(jsonfile.read())

    result_type = kwargs['type'].lower()
    keywords = kwargs['keywords']
    proxies = kwargs.get('proxies', [])
    return keywords, result_type, proxies