def METHOD_NAME(file_path: Path) -> tuple[dict[str, Any], list[tuple[int, str]]]:
    """Loads the given JSON file with line numbers"""
    content = read_file_with_any_encoding(file_path=file_path)
    if not all(key in content for key in ("resource", "provider")):
        return {}, []
    file_lines = [(idx + 1, line) for idx, line in enumerate(content.splitlines(keepends=True))]
    template: "dict[str, Any] | list[dict[str, Any]]" = loader.METHOD_NAME(content=content)
    if not template:
        template = {}
    if isinstance(template, list):
        template = template[0]
    if template:
        template = prepare_definition(template)
    return template, file_lines