I need to pass the whole json body as 1 variable and not each variable one by one. I can do this by selecting a external json file using <pm.environment.set(“jsonBody”, JSON.stringify(pm.iterationData.toObject()));>. But i want to pass it internally and not use an external file.
Welcome to the community @ifc0nfig! Glad you can join us
Is pasting the contents of your JSON file an option? You can always add the values manually to an environment or collection variable.
There are a couple of solutions we can go down, but maybe if you explained a little more your specific use case, like what you’re going to do with this variable and why you need to pass it internally, we can find the best one that works for you.