This plugin by @ZeroqodeSupport allows building dynamic arrays and objects based on user inputs.
Might be worth checking it out.