How to return an Array of Objects?

Hello, I have an Array of Objects that contains tickets, so in each purchase of a ticket I insert the Ticket Object in the Array

My question is, how can I access that array to display it in the interface?When I am going to return in a function it tells me that it is something Experimental, then I have the doubt

1 Like

Emmmm, I think you can write as following:

uint256[] public newArray;
    
function getArray() public view returns (uint256[] memory) {
    return newArray;
}
1 Like

My Array contains Structs…

1 Like