# Json change

**URL:** <https://community.gatling.io/t/json-change/5060>\
**Category:** Gatling (Open-Source)\
**Created:** [June 4, 2019, 11:48am UTC](https://community.gatling.io/t/json-change/5060 "2019-06-04T11:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Balacek](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@David\_Balacek](https://community.gatling.io/u/David_Balacek)\
**Post date:** [June 4, 2019, 11:48am UTC](https://community.gatling.io/t/json-change/5060/1 "2019-06-04T11:48:44Z")

</div>

Hey guys, i am new to gatling, is there anyway how to open a json file, change the value on a specific row (example id) save it and pass the changed json in a body? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![James\_Warr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@James\_Warr](https://community.gatling.io/u/James_Warr)\
**Post date:** [June 4, 2019, 10:56pm UTC](https://community.gatling.io/t/json-change/5060/2 "2019-06-04T22:56:01Z")

</div>

Have a look at the documentation for HTTP Body - particularly where you can provide an ELFileBody - this file can be json with gatling EL variables in place.

so you could have a file called ‘myBody.json’ that looks like this

`{ id: ${id}, name: 'dummy name' }`

and then in your scenario have

`exec( http("templated request") .post("..."), .body(ELFileBody("myBody.json")) )`

and that would submit the json in the file with ${id} replaced with whatever was in that session variable
