from pathlib import Path
from typing import Dict
from typing import Any
from typing import IO
import json
from typing import OrderedDict


def read_json(fname: Path) -> Dict[str, Any]:
    """
    Reads JSON file.

    Parameters
    ----------
    fname : pathlib.Path
        File path to the JSON file in question.

    Returns
    -------
    dict of {str, Any}
        JSON contents.
    """
    handle: IO
    with fname.open("rt") as handle:
        return json.load(handle, object_hook=OrderedDict)