I also found the solution.
Adding [len] after the struct array pointer solved my problem, it seems to work fine.
enter image description here