import json


def get_json_from_file_path(path):
    """
    Get the content of the json file and convert it into an object
    """
    f = None
    result = None
    # noinspection PyBroadException
    try:
        f = open(path, "r", encoding="utf-8")
        json_str = f.read().strip()
        result = json.loads(json_str)
    except Exception as e:
        raise e
    finally:
        if f:
            f.close()
    return result