def parse_path(path):
    """Decompose a JSON structure path"""
    parts = []
    for e in path.split('.'):
        if e.endswith('[]'):
            k, _ = e.split('[')
            parts.append([k, 'an', False])
        elif e.endswith('[-]'):
            k, _ = e.split('[')
            parts.append([k, 'al', False])
        else:
            k = e
            parts.append([k, 'o', False])
    if parts:
        parts[-1][2] = True
    return parts
