def METHOD_NAME(values: bytes) -> Iterable[dict[str, Any]]:
    buf = values
    while buf:
        try:
            (_, _, value_length), new_buf = unpack('!BBH', buf)
            value, new_buf = unpack_len(value_length, new_buf)
            yield json_loadb(value)
        except JSONDecodeError:
            (_, value_length), new_buf = unpack('!BB', buf)
            value, new_buf = unpack_len(value_length, new_buf)
            yield json_loadb(value)
        buf = new_buf