import logging
import json


def read_json_file_into_memory(json_file):
    """
    Purpose:
        Read properly formatted JSON file into memory.
    Args:
        json_file (String): Filename for JSON file to load (including path)
    Returns:
        json_object (Dictonary): Dictonary representation JSON Object
    Examples:
        >>> json_file = 'some/path/to/file.json'
        >>> json_object = read_json_file_into_memory(json_file)
        >>> print(json_object)
        >>> {
        >>>     'key': 'value'
        >>> }
    """
    logging.info(f"Reading JSON File Into Memory: {json_file}")

    try:
        with open(json_file, "r") as json_file_obj:
            return json.load(json_file_obj)
    except Exception as err:
        logging.exception(f"Cannot Read json into memory ({json_file}): {err}")
        raise err