import json


def read_data_json(file_name: str):
    """Read imported snippet data from json file

    Parameters
    ----------
    file_name : str
        Name of internal `.json` file with snippet info.

    Returns
    -------
    snippets : List[Snippet]
        List of snippet objects: dicts with prefix, body, mode, description.
        Superset of the info needed by: vscode/latex-utilities/atom snippets
        Derived: `multiline = isinstance(body, list)`, `priority = len(prefix)`
        Type: `Snippet = Dict[str, str]` or `Dict[str, List[str]]`.
    """
    with open(file_name, 'r') as file:
        snippets = json.load(file)
    return snippets