# Performing checks on saved response

**URL:** <https://community.gatling.io/t/performing-checks-on-saved-response/5956>\
**Category:** Gatling (Open-Source)\
**Created:** [January 9, 2021, 1:01am UTC](https://community.gatling.io/t/performing-checks-on-saved-response/5956 "2021-01-09T01:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sn02](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sn02](https://community.gatling.io/u/sn02)\
**Post date:** [January 9, 2021, 1:01am UTC](https://community.gatling.io/t/performing-checks-on-saved-response/5956/1 "2021-01-09T01:01:58Z")

</div>

Hello all,

I am performing some transformation in my scenario and saving it as dataString like this -

.check(bodyString.transform(str =\> str.replace("\", “”)).transform(str =\> str.replace(""{", “{”)).transform(str =\> str.replace("}"", “}”)).saveAs(“dataString”))

Is there a way to perform jmesPath/jsonPath on the dataString?

dataString is a JSON and I want to get the value of the name and verify using jmesPath something like “${dataString”}.data.id

Please help.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [January 9, 2021, 8:44am UTC](https://community.gatling.io/t/performing-checks-on-saved-response/5956/2 "2021-01-09T08:44:48Z")

</div>

You have to use a response transformer and replace the existing one with a new StringResponseBody, see [https://gatling.io/docs/current/http/http\_request/#response-transformers](https://gatling.io/docs/current/http/http_request/#response-transformers)

---

<div class="post-metadata">

**Author:** ![sn02](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sn02](https://community.gatling.io/u/sn02)\
**Post date:** [January 11, 2021, 1:31am UTC](https://community.gatling.io/t/performing-checks-on-saved-response/5956/3 "2021-01-11T01:31:14Z")

</div>

Thanks for the lead Stephane.

Do you have any sample for multiple string replacement(as shown in my initial query) inside of a transformResponse?

Thanks,  
Sowmya
