I am trying to pass a JSON like data structure as an argument to a function which can be traversed to intitialize a struct.
Although I looked into a few codes , I didn’t find an effective procedure to do it.
How exactly can I pass a json-like custom data structure in Solidity functions , so that I can use a for loop to traverse over it and use the passed values to intitialize a struct.
Please provide useful resources to help me out with this.