Json change

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!

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