# How to dynamically pass values to HTTP request body (JSON format file).

**URL:** https://community.gatling.io/t/how-to-dynamically-pass-values-to-http-request-body-json-format-file/5049
**Category:** Gatling (Open-Source)
**Created:** [May 30, 2019, 6:52am UTC](https://community.gatling.io/t/how-to-dynamically-pass-values-to-http-request-body-json-format-file/5049 "2019-05-30T06:52:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aakash\_Shaji](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Aakash\_Shaji](https://community.gatling.io/u/Aakash_Shaji)
#### Post date: [May 30, 2019, 6:52am UTC](https://community.gatling.io/t/how-to-dynamically-pass-values-to-http-request-body-json-format-file/5049/1 "2019-05-30T06:52:10Z")

</div>

Please consider the below jsonbody, and the it is saved as a json file in my project.

[  
{  
“access\_token”: {  
“original\_client\_id”: “spa-proxy-membership-ca”,  
“channel\_key”: “uqec-ca”,  
}  
}

]

So my question is that, how to dynamically pass the value of “original\_client\_id” from the simulation?  
I have tried replacing “spa-proxy-membership-ca” with ${\<variable\_name\>} as shown below, but it is not wokring.

[  
{  
“access\_token”: {  
“original\_client\_id”: “${\<variable\_name\>}”,  
“channel\_key”: “uqec-ca”,  
}  
}

]

Please help.
