How to deal with input JSON with varying array lengths when reading from external file

I figured out the answer to this question: Its the same answer I posted in the following link: Comparing API response to JSON in an external file

You can pass the entire JSON in, assign it to an environmental variable in the pre-req using pm.iterationData.get , and then call that environmental variable in the body