tools/athena/loadtoathena.py
def parse_json(file_to_read: str) -> dict:
    """
    Parse a JSON file and returns dict
    """
    json_data = {}
    try:
        with open(file_to_read, "r", encoding="UTF-8") as json_file_reader:
            json_data = json.load(json_file_reader)

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

    return json_data

    Parse a JSON file and returns dict
    
Parse a JSON file and returns dict
Parse a JSON file and returns dict
def parse_json(file_to_read: str) -> dict:
    json_data = {}
    try:
        with open(file_to_read, "r", encoding="UTF-8") as json_file_reader:
            json_data = json.load(json_file_reader)
    except Exception as err:
        logger.error("parsing failed for json file: %s", file_to_read)
        logger.error(err)
        raise
    return json_data
def parse_json ( file_to_read : str ) -> dict : json_data = { } try : with open ( file_to_read , "r" , encoding = "UTF-8" ) as json_file_reader : json_data = json . load ( json_file_reader ) except Exception as err : logger . error ( "parsing failed for json file: %s" , file_to_read ) logger . error ( err ) raise return json_data
Parse a JSON file and returns dict
Parse a JSON file and returns dict
"""
    Parse a JSON file and returns dict
    """
file_to_read
str