aggregation_modules/utils.py
def read_json_file_to_dict(self, file_to_read: str) -> dict:
        """
        Parse a JSON file and returns dict
        """
        try:
            with io.open(file_to_read, "rb") as json_file_reader:
                return self.get_dict_from_json(json_file_reader)

        except Exception as err:
            logger.error("parsing failed for json file: %s", file_to_read)
            logger.error("%s: %s", type(err), err)
            raise

        return {}

        Parse a JSON file and returns dict
        
Parse a JSON file and returns dict
Parse a JSON file and returns dict
def read_json_file_to_dict(self, file_to_read: str) -> dict:
        try:
            with io.open(file_to_read, "rb") as json_file_reader:
                return self.get_dict_from_json(json_file_reader)
        except Exception as err:
            logger.error("parsing failed for json file: %s", file_to_read)
            logger.error("%s: %s", type(err), err)
            raise
        return {}
def read_json_file_to_dict ( self , file_to_read : str ) -> dict : try : with io . open ( file_to_read , "rb" ) as json_file_reader : return self . get_dict_from_json ( json_file_reader ) except Exception as err : logger . error ( "parsing failed for json file: %s" , file_to_read ) logger . error ( "%s: %s" , type ( err ) , err ) raise return { }
Parse a JSON file and returns dict
Parse a JSON file and returns dict
"""
        Parse a JSON file and returns dict
        """
self
file_to_read
str