from typing import Dict
from typing import List


def get_blocks_or_data(json_object: Dict, name: str) -> List[int]:
    """Get array of blocks or data from schematic json

    Arguments:
        json_object {Dict} -- Schematic json
        name {str} -- 'Blocks' or 'Data'

    Returns:
        List[int] -- Array of values
    """

    return [obj['value'] for obj in json_object['nbt'][0]['value'] if obj['name'] == name][0]