from typing import Union
from pathlib import Path
from typing import Any
import json


def load_json(filename: Union[Path, str]) -> Any:
    """
    Load json from file.

    Args:
        filename: name of file

    Returns: deserialized json
    """
    with Path(filename).expanduser().absolute().open() as fp:
        return json.load(fp)