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


def load_data_from_json(path: Union[Path, str]) -> Dict[str, Any]:
    """Load ASCII frames from JSON

    :param path: JSON file path
    :return: ASCII frames
    """
    with open(path, 'r') as file:
        return json.load(file)