from pathlib import Path


def json_path(path: Path) -> bool:
    """
    Check if path has .json suffix.
    :param path: pathlib Path
    :return: bool
    """
    if path and path.suffix == ".json":
        return True
    return False