from pathlib import Path
from typing import Dict
from typing import Union
from typing import Mapping
import json


def read_json(path: Path) -> Dict[str, Union[str, Mapping[str, str]]]:
    """Return dictionary from JSON file"""
    data = None
    if path.is_file():
        with path.open() as infile:
            data = json.load(infile)
    return data or {}