# How to store a JSON in a variable and use it in the next request body?

**URL:** <https://community.postman.com/t/how-to-store-a-json-in-a-variable-and-use-it-in-the-next-request-body/31821>\
**Category:** Help Hub\
**Created:** [January 24, 2022, 12:23am UTC](https://community.postman.com/t/how-to-store-a-json-in-a-variable-and-use-it-in-the-next-request-body/31821 "2022-01-24T00:23:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [January 24, 2022, 4:05am UTC](https://community.postman.com/t/how-to-store-a-json-in-a-variable-and-use-it-in-the-next-request-body/31821/2 "2022-01-24T04:05:04Z")

</div>

@aafreenss Welcome to the Community 🥳

This is quite a common question in our forum 😊

Can you please refer to the below post if this helps: [How to loop through array and use its values in a request](https://community.postman.com/t/how-to-loop-through-array-and-use-its-values-in-a-request/6771)

So the process goes this way:

1. Since ID is an array, you should store it in an array
2. And figuring out a way to iterate the value over the params (it can even be the traditional for loop)

---

_[View the full topic](https://community.postman.com/t/how-to-store-a-json-in-a-variable-and-use-it-in-the-next-request-body/31821)._
