import json


def parse_in_file_json(args: object) -> dict:
    """
    A generic method to return a tool's JSON results file as a dict
    """
    results_file = vars(args)['in']
    with open(results_file) as f:
        data = f.read()
        return json.loads(data)