You can pass a List of objects to a JavaScript action. You just need to add parameters to the JS action, and then at the time of invoking this action from a nanoflow, you just pass the required List.
Please see a description here in docs. I think it should work for you. If not, then please post some details on the error like screenshots of your implementation and the error occurred.