from typing import Union
from typing import Dict
from typing import Any
from typing import List
import json


def load_json_file(file_path: str) -> Union[Dict[str, Any], List[Any]]:
    """
    Helper function to open a JSON file and load.
    """
    dat = None
    with open(file_path, "rt") as fh:
        dat = json.load(fh)
    return dat