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.
Would like to know if any dev here can help me out with this or provide some useful resources for the same.